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/main/solver/solver.h | |
| 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/main/solver/solver.h')
| -rw-r--r-- | src/main/solver/solver.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<node> children; }; @@ -36,9 +36,9 @@ public: private: bool revert_to_last_node_with_children(); - void add_children(std::vector<game_state::move>&); - void add_child(game_state::move); - std::vector<game_state::move> get_next_moves(); + void add_children(std::vector<move>&); + void add_child(move); + std::vector<move> get_next_moves(); const game_state init_state; game_state state; |
