Exemplo n.º 1
0
def test_winning_moves(board, move, turn):
    game = Game(board=board, turn=turn)
    assert game.turn == turn
    assert game.is_valid_move(move)
    game.make_move(move)
    assert game.habemus_victor()
    assert game.winner == turn
Exemplo n.º 2
0
def test_cats_game(board, move, turn):
    game = Game(board=board, turn=turn)
    game.make_move(move)
    assert game.is_over()
    assert not game.habemus_victor()