def test_get_position_value_draw_is_best_case(): b = np.array([[1, -1, 0], [1, 1, -1], [-1, 1, -1]]).flatten() value = get_position_value(Board(b)) assert value == RESULT_DRAW
def test_get_position_value_o_wins_in_best_case_o_turn(): b = np.array([[1, 0, 0], [1, -1, 1], [0, 0, -1]]).flatten() value = get_position_value(Board(b)) assert value == RESULT_O_WINS
def test_get_position_value_o_wins(): b = np.array([[1, 0, -1], [1, 0, -1], [0, 1, -1]]).flatten() value = get_position_value(Board(b)) assert value == RESULT_O_WINS