X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgameboard.py;h=66c651936099520c0d163786881b7422974fac94;hb=de7f100e35ce19c4561d2a0d7ccdc77a38d72381;hp=52d1323bd176a5cd3ca7205086b7fe44455f450f;hpb=e6c9584589c3e3565be85f9b0f0eb5923a394a86;p=naja.git diff --git a/naja/gameboard.py b/naja/gameboard.py index 52d1323..66c6519 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -188,7 +188,7 @@ class GameBoard(object): # Find which cards are at their maximum and exclude them from # the choice list counts = {} - choices = {card['card_name']: card for card in cards} + choices = dict((card['card_name'], card) for card in cards) for pos, card in board_locations: if pos == position: # skip the card we're replacing if appropriate @@ -305,6 +305,9 @@ class LocationCard(object): self.actions = location_actions self.max_number = max_number self.replacement_time = replacement_time + if options.debug: + for action in self.actions: + action.sanity_check(self) @classmethod def import_location(cls, state):