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/main/solver/solver.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/solver/solver.h') diff --git a/src/main/solver/solver.h b/src/main/solver/solver.h index 77e8bde..21b8d6e 100644 --- a/src/main/solver/solver.h +++ b/src/main/solver/solver.h @@ -18,9 +18,9 @@ public: global_cache cache; struct node { - node(node*, game_state::move); + node(node*, move); node* parent; - const game_state::move move; + const move mv; std::vector children; }; @@ -36,9 +36,9 @@ public: private: bool revert_to_last_node_with_children(); - void add_children(std::vector&); - void add_child(game_state::move); - std::vector get_next_moves(); + void add_children(std::vector&); + void add_child(move); + std::vector get_next_moves(); const game_state init_state; game_state state; -- cgit v1.2.1