X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgameboard.py;h=689c3fd15fcf324d9110763331a6a0eeb93023d2;hb=21decfd74a4f550f4758d8583620110baee72aed;hp=7d9dfafe1c44b30b160da7d1ba276858ebfa5504;hpb=7d37d825d2ea17d7b5f10dd4b71a97b4f8f4dbf8;p=naja.git diff --git a/naja/gameboard.py b/naja/gameboard.py index 7d9dfaf..689c3fd 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -56,6 +56,8 @@ class GameBoard(object): if wins_required is None: wins_required = defaults['wins_required'] + assert wins_required + max_health == 8 + # Overriden by command line if options.initial_bits: initial_bits = options.initial_bits @@ -303,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):