diff options
| author | Charlie Blake | 2018-07-15 01:16:38 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-18 16:04:06 +0100 |
| commit | df6b4405801f762cc536ed441c673e4bd1675620 (patch) | |
| tree | 62bbba8f7dd114ccd39f0e935b1bc4fbd74250dd /src/main/solver | |
| parent | Add accordion top pile state caching (diff) | |
| download | metasol-df6b4405801f762cc536ed441c673e4bd1675620.tar.gz metasol-df6b4405801f762cc536ed441c673e4bd1675620.zip | |
Add accordion move making
Diffstat (limited to 'src/main/solver')
| -rw-r--r-- | src/main/solver/solver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/solver/solver.cpp b/src/main/solver/solver.cpp index cd8652f..4059b5b 100644 --- a/src/main/solver/solver.cpp +++ b/src/main/solver/solver.cpp @@ -48,7 +48,7 @@ solver::node::node(const move m) solver::sol_state solver::run(boost::optional<atomic<bool> &> terminate_solver) { bool states_exhausted = false; - while(!(/*state.is_solved() || */states_exhausted)) { + while(!(state.is_solved() || states_exhausted)) { // If the terminate flag was supplied and has been set to true, return if (terminate_solver && *terminate_solver) { return sol_state::timed_out; @@ -136,6 +136,7 @@ bool solver::revert_to_last_node_with_children(optional<lru_cache::item_list::it if (current_node->mv.type != move::mtype::dominance) { if (cache.get_states_removed_from_cache() == 0) { + LOG_DEBUG(state); // TODO assert(cache.contains(state)); } LOG_DEBUG("(undo move)"); |
