aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/solve_multithread.h
diff options
context:
space:
mode:
authorenricotenuti <tenutz_27@outlook.it>2024-10-26 16:08:17 +0200
committerenricotenuti <tenutz_27@outlook.it>2024-10-26 16:08:17 +0200
commit0422e6244e9e1a97397be147abb317f96d0154c3 (patch)
tree3a3abd8cce12ccc0bcb38f1c32213af2647dcf04 /src/solvers/h48/solve_multithread.h
parent09fb2900d3811d76ef145e5f960e5b824bb0bfb6 (diff)
downloadnissy-core-0422e6244e9e1a97397be147abb317f96d0154c3.tar.gz
nissy-core-0422e6244e9e1a97397be147abb317f96d0154c3.zip
Check depth fix
Diffstat (limited to '')
-rw-r--r--src/solvers/h48/solve_multithread.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/solvers/h48/solve_multithread.h b/src/solvers/h48/solve_multithread.h
index 72f519e..e33ed49 100644
--- a/src/solvers/h48/solve_multithread.h
+++ b/src/solvers/h48/solve_multithread.h
@@ -214,11 +214,13 @@ solve_h48_single(dfsarg_solveh48_t *arg, task_queue_t *tq)
214 if (solve_h48_stop(arg)) 214 if (solve_h48_stop(arg))
215 return 0; 215 return 0;
216 216
217 if (issolved(arg->cube)){ 217 if (arg->nmoves + arg->npremoves == arg->depth){
218 if (arg->nmoves + arg->npremoves != arg->depth) 218 if(issolved(arg->cube)) {
219 solve_h48_appendsolution_thread(arg, tq);
220 return 1;
221 } else {
219 return 0; 222 return 0;
220 solve_h48_appendsolution_thread(arg, tq); 223 }
221 return 1;
222 } 224 }
223 225
224 nextarg = *arg; 226 nextarg = *arg;

Generated with cgit - Back to sebastiano.tronto.net