# HG changeset patch # User Neil Muller # Date 1252186721 0 # Node ID b07ea17b8b4e61df873e54ccb5a6e524ec401da0 # Parent 305af737c0a8c78dd519d7372f385cef692b64af Move starting chickens to constants diff -r 305af737c0a8 -r b07ea17b8b4e gamelib/constants.py --- a/gamelib/constants.py Sat Sep 05 21:32:12 2009 +0000 +++ b/gamelib/constants.py Sat Sep 05 21:38:41 2009 +0000 @@ -56,3 +56,5 @@ ABS_MAX_NUM_FOXES = 50 # Limit possible uppoer number of foxes, due to concerns # about performance, etc. + +START_CHICKENS = 10 diff -r 305af737c0a8 -r b07ea17b8b4e gamelib/gameboard.py --- a/gamelib/gameboard.py Sat Sep 05 21:32:12 2009 +0000 +++ b/gamelib/gameboard.py Sat Sep 05 21:38:41 2009 +0000 @@ -944,7 +944,7 @@ x, y = 0, 0 width, height = self.tv.size tries = 0 - while len(self.chickens) < 10: + while len(self.chickens) < constants.START_CHICKENS: if x < width: tile = self.tv.get((x, y)) else: