Fix initial bits.
authorSimon Cross <hodgestar@gmail.com>
Sun, 11 May 2014 16:59:10 +0000 (18:59 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sun, 11 May 2014 16:59:10 +0000 (18:59 +0200)
naja/gamestate.py

index 9dca03026f773869e126e71647358dbfdba354d1..96e55056bf862b5243aed0198bd46e8a0ce097a7 100644 (file)
@@ -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