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