diff options
Diffstat (limited to 'snake.py')
-rw-r--r-- | snake.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |