comparison gamelib/gameboard.py @ 316:ae5989b3ce01

Fix test for time limit
author Neil Muller <drnlmuller@gmail.com>
date Sat, 05 Sep 2009 18:56:59 +0000
parents 49c58dda8ac2
children 9bf0e701a36e
comparison
equal deleted inserted replaced
315:0a3161fec434 316:ae5989b3ce01
1037 1037
1038 def is_game_over(self): 1038 def is_game_over(self):
1039 """Return true if we're complete""" 1039 """Return true if we're complete"""
1040 if self.trees_left() == 0: 1040 if self.trees_left() == 0:
1041 return True 1041 return True
1042 if constants.TURN_LIMIT > 0 and self.days > constants.TURN_LIMIT: 1042 if constants.TURN_LIMIT > 0 and self.days >= constants.TURN_LIMIT:
1043 return True 1043 return True
1044 if len(self.chickens) == 0: 1044 if len(self.chickens) == 0:
1045 return True 1045 return True