projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move player defaults into constants.
[naja.git]
/
naja
/
gamestate.py
diff --git
a/naja/gamestate.py
b/naja/gamestate.py
index dabf34a9c23311c6302d06242dc2688dce5d50b8..4e892f883ef4cf7ab456a871cda2a13f37c5ca7b 100644
(file)
--- a/
naja/gamestate.py
+++ b/
naja/gamestate.py
@@
-2,7
+2,6
@@
The current game state.
"""
The current game state.
"""
-from naja.constants import BITS
from naja.gameboard import GameBoard
from naja.gameboard import GameBoard
@@
-11,19
+10,8
@@
class GameState(object):
Naja game state.
"""
Naja game state.
"""
- INITIAL_BITS = (
- BITS.NORTH | BITS.SOUTH |
- BITS.EAST | BITS.WEST
- )
- MAX_HEALTH = 4
- WINS_REQUIRED = 4
-
def __init__(self):
self.gameboard = GameBoard.new_game(
def __init__(self):
self.gameboard = GameBoard.new_game(
- initial_bits=self.INITIAL_BITS,
- initial_pos=(2, 2),
- max_health=self.MAX_HEALTH,
- wins_required=self.WINS_REQUIRED,
locations_definition=[]) # TODO: we will need some of these :)
@property
locations_definition=[]) # TODO: we will need some of these :)
@property