flip is back
This commit is contained in:
parent
1aa9cf705f
commit
c3f5e909d6
5
board.py
5
board.py
|
@ -256,3 +256,8 @@ class Board:
|
||||||
def do_move(board, player, move):
|
def do_move(board, player, move):
|
||||||
# Implies that move is valid; make sure to check move validity before calling do_move(...)
|
# Implies that move is valid; make sure to check move validity before calling do_move(...)
|
||||||
return quack.do_move(board, player, move)
|
return quack.do_move(board, player, move)
|
||||||
|
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def flip(board):
|
||||||
|
return tuple((-x for x in reversed(board)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user