projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78a001f
)
Fix initial bits.
author
Simon Cross
<hodgestar@gmail.com>
Sun, 11 May 2014 16:59:10 +0000
(18:59 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sun, 11 May 2014 16:59:10 +0000
(18:59 +0200)
naja/gamestate.py
patch
|
blob
|
history
diff --git
a/naja/gamestate.py
b/naja/gamestate.py
index 9dca03026f773869e126e71647358dbfdba354d1..96e55056bf862b5243aed0198bd46e8a0ce097a7 100644
(file)
--- a/
naja/gamestate.py
+++ b/
naja/gamestate.py
@@
-2,7
+2,7
@@
The current game state.
"""
-from .constants import
NORTH, SOUTH, EAST, WEST
+from .constants import
BITS
from .gameboard import GameBoard
from .player import Player
@@
-12,7
+12,10
@@
class GameState(object):
Naja game state.
"""
- INITIAL_BITS = NORTH | SOUTH | EAST | WEST
+ INITIAL_BITS = (
+ BITS.NORTH | BITS.SOUTH |
+ BITS.EAST | BITS.WEST
+ )
MAX_HEALTH = 4
WINS_REQUIRED = 4