diff options
| author | Charlie Blake | 2018-03-08 14:59:30 +0000 |
|---|---|---|
| committer | GitHub | 2018-03-08 14:59:30 +0000 |
| commit | dd97cf54cb0f76679a2323ab599a86fc4f005193 (patch) | |
| tree | db04a4886f4f622d4a6cddf65e35ebdd8e37c7a2 /src/main/solver/solver.h | |
| parent | Merge pull request #41 from thecharlesblake/profile-improve (diff) | |
| parent | Add results dir (diff) | |
| download | metasol-dd97cf54cb0f76679a2323ab599a86fc4f005193.tar.gz metasol-dd97cf54cb0f76679a2323ab599a86fc4f005193.zip | |
Merge pull request #42 from thecharlesblake/solvability-percentages
Solvability percentages
Diffstat (limited to 'src/main/solver/solver.h')
| -rw-r--r-- | src/main/solver/solver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/solver/solver.h b/src/main/solver/solver.h index 80d4ef5..2a024ac 100644 --- a/src/main/solver/solver.h +++ b/src/main/solver/solver.h @@ -7,6 +7,7 @@ #include <string> #include <vector> +#include <atomic> #include "../game/global_cache.h" #include "../game/sol_rules.h" @@ -23,8 +24,9 @@ public: }; explicit solver(const game_state&); + ~solver(); - bool run(); + bool run(boost::optional<std::atomic<bool> &> = boost::none); void print_solution() const; int get_states_searched() const; const node& get_search_tree() const; |
