diff options
author | Peter Ward <peteraward@gmail.com> | 2009-10-28 17:43:56 +1100 |
---|---|---|
committer | Peter Ward <peteraward@gmail.com> | 2009-10-28 17:43:56 +1100 |
commit | 68b9a117e03c6f64d1f15280a0ec61824d25ced6 (patch) | |
tree | 2bbeef08a0f24a0d2d3ca11c8adaf16628cdcbae /snake.py | |
parent | 6941f7192fe34add95bd444491f399408eaac014 (diff) |
Allow continuously running games.
Diffstat (limited to 'snake.py')
-rw-r--r-- | snake.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |