diff options
| author | Charlie Blake | 2018-06-07 16:31:14 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-07 16:31:14 +0100 |
| commit | ca5e97bfeec3b03562b4c4a312b6a83c51b013fc (patch) | |
| tree | 0ae87532b4f83ae503c54096b33fdb99d485a018 /src/main/solver/solver.h | |
| parent | Remove depth cutoff from solver class (diff) | |
| download | metasol-ca5e97bfeec3b03562b4c4a312b6a83c51b013fc.tar.gz metasol-ca5e97bfeec3b03562b4c4a312b6a83c51b013fc.zip | |
Add more detailed logging info about search sols
Diffstat (limited to 'src/main/solver/solver.h')
| -rw-r--r-- | src/main/solver/solver.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/solver/solver.h b/src/main/solver/solver.h index 665d72a..77e8bde 100644 --- a/src/main/solver/solver.h +++ b/src/main/solver/solver.h @@ -14,7 +14,7 @@ class solver { public: - enum class sol_state {solved, unsolvable, cutoff}; + enum class sol_state {solved, unsolvable, timed_out}; global_cache cache; struct node { @@ -30,10 +30,9 @@ public: sol_state run(boost::optional<std::atomic<bool> &> = boost::none); void print_solution() const; + void print_solution_info() const; int get_states_searched() const; - int get_final_depth() const; const node& get_search_tree() const; - int get_backtrack_count(); private: bool revert_to_last_node_with_children(); @@ -43,9 +42,12 @@ private: const game_state init_state; game_state state; + int states_searched; + int unique_states_searched; int backtracks; - uint depth; + int dominance_moves; + int depth; node root; node* current_node; |
