def test_get_game_result_draw():
    b = np.array([[1, 1, -1], [-1, -1, 1], [1, -1, 1]]).flatten()

    board = Board(b)

    result = board.get_game_result()

    assert result == RESULT_DRAW
def test_get_game_result_not_over():
    b = np.array([[1, 1, -1], [0, -1, 0], [1, -1, 1]]).flatten()

    board = Board(b)

    result = board.get_game_result()

    assert result == RESULT_NOT_OVER
def test_get_game_result_o_wins():
    b = np.array([[1, 0, -1], [0, -1, 1], [-1, 0, 1]]).flatten()

    board = Board(b)

    result = board.get_game_result()

    assert result == RESULT_O_WINS