From: Simon Cross Date: Sun, 11 May 2014 16:59:10 +0000 (+0200) Subject: Fix initial bits. X-Git-Tag: 0.1~410^2 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=62a297a628fe85160afa770ecad666e3d1a50126;hp=78a001f6b445795f347d1ae7399d8f3b4072f779;p=naja.git Fix initial bits. --- 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