From 819a1064c5142a9b2f04ff8149d34fc915c18322 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Fri, 8 Jun 2018 10:31:22 +0100 Subject: Refactor legal moves gen and moves logic --- src/test/test_helper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/test/test_helper.cpp') diff --git a/src/test/test_helper.cpp b/src/test/test_helper.cpp index 9d928c6..6f2a68d 100644 --- a/src/test/test_helper.cpp +++ b/src/test/test_helper.cpp @@ -5,7 +5,7 @@ #include #include "test_helper.h" -#include "../main/game/game_state.h" +#include "../main/game/search-state/game_state.h" #include "../main/solver/solver.h" #include "../main/input-output/input/json-parsing/json_helper.h" #include "../main/input-output/input/json-parsing/rules_parser.h" @@ -50,10 +50,10 @@ void test_helper::run_foundations_dominance_test(sol_rules::build_policy policy, solver::node const *n = &sol.get_search_tree(); for (card c : cards) { n = &n->children.back(); - ASSERT_TRUE(n->move.is_dominance()); - ASSERT_TRUE(gs.get_data()[n->move.from].top_card() == c); - ASSERT_TRUE(n->move.to >= 0 && n->move.to <= 4); - gs.make_move(n->move); + ASSERT_TRUE(n->mv.is_dominance()); + ASSERT_TRUE(gs.get_data()[n->mv.from].top_card() == c); + ASSERT_TRUE(n->mv.to >= 0 && n->mv.to <= 4); + gs.make_move(n->mv); } ASSERT_TRUE(n->children.empty()); } -- cgit v1.2.1