def test_is_winner(): engine = SuperTicTacToe() moves = build_move_list([ (0, 6), (6, 0), (0, 4), (4, 0), (0, 2), (2, 1), (1, 7), (7, 1), (1, 4), (4, 1), (1, 1), (1, 2), (2, 3), (3, 2), (2, 4), (4, 2)]) for player, board, square in moves: engine.move(player, board, square) assert_false(engine.is_winner(PLAYER_X, 2, 0)) assert_true(engine.is_winner(PLAYER_X, 2, 5))
def test_is_not_winner(): engine = SuperTicTacToe() assert_false(engine.is_winner(PLAYER_X, 1, 4))