comparison gamelib/gameboard.py @ 341:40667c9caff9

if turns are unlimited, display day as x/-
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 05 Sep 2009 22:58:59 +0000
parents 82a18615a0ab
children 279974cc0698
comparison
equal deleted inserted replaced
340:31f6f1b2697e 341:40667c9caff9
825 return False 825 return False
826 826
827 def advance_day(self): 827 def advance_day(self):
828 self.days += 1 828 self.days += 1
829 self.toolbar.day_counter.style.color = (255, 0, 0) 829 self.toolbar.day_counter.style.color = (255, 0, 0)
830 self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT)) 830 self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT if constants.TURN_LIMIT > 0 else "-"))
831 831
832 def clear_foxes(self): 832 def clear_foxes(self):
833 for fox in self.foxes.copy(): 833 for fox in self.foxes.copy():
834 # Any foxes that didn't make it to the woods are automatically 834 # Any foxes that didn't make it to the woods are automatically
835 # killed 835 # killed