summaryrefslogtreecommitdiff
path: root/snake.py
diff options
context:
space:
mode:
Diffstat (limited to 'snake.py')
-rw-r--r--snake.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/snake.py b/snake.py
index ba25814..40d38d7 100644
--- a/snake.py
+++ b/snake.py
@@ -17,9 +17,6 @@ class SnakeEngine(object):
def __init__(self, rows, columns, n_apples, results=False):
super(SnakeEngine, self).__init__()
- self.letters = list(string.lowercase)
- self.letters.reverse()
-
self.bots = {}
self.results = None
if results:
@@ -43,6 +40,9 @@ class SnakeEngine(object):
self.start_time = time.time()
self.game_id = random.randint(0, sys.maxint)
+ self.letters = list(string.lowercase)
+ self.letters.reverse()
+
self.rows = rows
self.columns = columns