From 62a297a628fe85160afa770ecad666e3d1a50126 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sun, 11 May 2014 18:59:10 +0200 Subject: [PATCH] Fix initial bits. --- naja/gamestate.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/naja/gamestate.py b/naja/gamestate.py index 9dca030..96e5505 100644 --- 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 -- 2.34.1