X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fgamestate.py;h=8d00756f8c85c318f7d30a224683f75c6b274f76;hb=85f20ca165c1710c96afbc42fa07acb68b6b4c1d;hp=71abcc73a00eff7982eedadd5cb726120f4b3450;hpb=afd42e545649b6e5a3fe1502c063080cb9302c14;p=naja.git diff --git a/naja/gamestate.py b/naja/gamestate.py index 71abcc7..8d00756 100644 --- a/naja/gamestate.py +++ b/naja/gamestate.py @@ -17,14 +17,18 @@ class GameState(object): self.gameboard = GameBoard.new_game( locations_definition=[ {'actions': []}, - {'actions': [{'required_bits': [BITS['CYAN']], + {'actions': [{'required_bits': [BITS.CYAN], 'action_class': 'DoNothing'}]}, - {'actions': [{'required_bits': [BITS['YELLOW']], + {'actions': [{'required_bits': [BITS.YELLOW], 'action_class': 'DoNothing'}]}, - {'actions': [{'required_bits': [BITS['YELLOW'], BITS['MAGENTA']], + {'actions': [{'required_bits': [BITS.YELLOW, BITS.MAGENTA], 'action_class': 'DoNothing'}]}, ]) @property def player(self): return self.gameboard.player + + @property + def board_locations(self): + return self.gameboard.board_locations