diff options
| author | Charlie Blake | 2018-02-24 11:12:45 +0000 |
|---|---|---|
| committer | GitHub | 2018-02-24 11:12:45 +0000 |
| commit | 2db3586f42af5174a14e8a6f693334f3f4f75e14 (patch) | |
| tree | 4983a8a72065056e693b418510e64abdbdb0f2b7 /src/main/solver/solver.h | |
| parent | Merge pull request #40 from thecharlesblake/test-optimisations (diff) | |
| parent | Add card just moved optimisation to game logic (diff) | |
| download | metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.tar.gz metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.zip | |
Merge pull request #41 from thecharlesblake/profile-improve
Profile improve
Diffstat (limited to 'src/main/solver/solver.h')
| -rw-r--r-- | src/main/solver/solver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/solver/solver.h b/src/main/solver/solver.h index 9488dda..80d4ef5 100644 --- a/src/main/solver/solver.h +++ b/src/main/solver/solver.h @@ -6,7 +6,6 @@ #define SOLVITAIRE_SOLVER_H #include <string> -#include <list> #include <vector> #include "../game/global_cache.h" @@ -20,7 +19,7 @@ public: node(node*, game_state::move); node* parent; const game_state::move move; - std::list<node> children; + std::vector<node> children; }; explicit solver(const game_state&); @@ -34,6 +33,7 @@ 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(); const game_state init_state; game_state state; |
