flip is back

This commit is contained in:
Christoffer Müller Madsen 2018-05-11 21:47:48 +02:00
parent 1aa9cf705f
commit c3f5e909d6

View File

@ -256,3 +256,8 @@ class Board:
def do_move(board, player, move):
# Implies that move is valid; make sure to check move validity before calling do_move(...)
return quack.do_move(board, player, move)
@staticmethod
def flip(board):
return tuple((-x for x in reversed(board)))