diff --git a/board.py b/board.py index 0306a22..38693c3 100644 --- a/board.py +++ b/board.py @@ -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)))