projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chess moves are working; need more tests
[naja.git]
/
naja
/
gameboard.py
diff --git
a/naja/gameboard.py
b/naja/gameboard.py
index 3717b564dcf0809a5ebda745f283bdfd7dd73ca8..367a9e15118b4cbd6b9fe3248a691c141f66831d 100644
(file)
--- a/
naja/gameboard.py
+++ b/
naja/gameboard.py
@@
-130,6
+130,9
@@
class GameBoard(object):
elif BITS[direction] == BITS.WEST:
self.shift_location_row(-1, is_vertical=False)
elif BITS[direction] == BITS.WEST:
self.shift_location_row(-1, is_vertical=False)
+ def allow_chess_move(self, chesspiece):
+ self.player.allow_chess_move(chesspiece)
+
def change_mode(self, new_mode):
"""Advance to the next mode"""
if new_mode == self.player_mode:
def change_mode(self, new_mode):
"""Advance to the next mode"""
if new_mode == self.player_mode: