From 98412e53d4de308efbf91648f54d3150091f0213 Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Wed, 28 Oct 2009 18:08:07 +1100 Subject: Fixed long-running bug. --- snake.py | 6 +++--- 1 file 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 -- cgit v1.2.3