diff options
| author | Charlie Blake | 2018-06-08 10:31:22 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-08 10:31:22 +0100 |
| commit | 819a1064c5142a9b2f04ff8149d34fc915c18322 (patch) | |
| tree | 6d0c8763ad79df10e6e6bcd30a0a974326e54e3a /src/test/test_helper.cpp | |
| parent | Remove reduced state build and logic (diff) | |
| download | metasol-819a1064c5142a9b2f04ff8149d34fc915c18322.tar.gz metasol-819a1064c5142a9b2f04ff8149d34fc915c18322.zip | |
Refactor legal moves gen and moves logic
Diffstat (limited to 'src/test/test_helper.cpp')
| -rw-r--r-- | src/test/test_helper.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 <gtest/gtest.h> #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()); } |
