projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Scale up images
[naja.git]
/
naja
/
gamestate.py
diff --git
a/naja/gamestate.py
b/naja/gamestate.py
index 71abcc73a00eff7982eedadd5cb726120f4b3450..8d00756f8c85c318f7d30a224683f75c6b274f76 100644
(file)
--- a/
naja/gamestate.py
+++ b/
naja/gamestate.py
@@
-17,14
+17,18
@@
class GameState(object):
self.gameboard = GameBoard.new_game(
locations_definition=[
{'actions': []},
self.gameboard = GameBoard.new_game(
locations_definition=[
{'actions': []},
- {'actions': [{'required_bits': [BITS
['CYAN']
],
+ {'actions': [{'required_bits': [BITS
.CYAN
],
'action_class': 'DoNothing'}]},
'action_class': 'DoNothing'}]},
- {'actions': [{'required_bits': [BITS
['YELLOW']
],
+ {'actions': [{'required_bits': [BITS
.YELLOW
],
'action_class': 'DoNothing'}]},
'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
'action_class': 'DoNothing'}]},
])
@property
def player(self):
return self.gameboard.player
+
+ @property
+ def board_locations(self):
+ return self.gameboard.board_locations