diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-29 10:08:04 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-29 10:08:04 +0200 |
| commit | 8d3fc9f5f9c0593fcae9c451efe6c89c64dcbe84 (patch) | |
| tree | 8c0182f9bf94aaa8afe5126988e07af82c4409fd /tools/400_solvetest | |
| parent | cdf46d85efe7fa54e8c302a255214341c567b4af (diff) | |
| download | nissy-core-8d3fc9f5f9c0593fcae9c451efe6c89c64dcbe84.tar.gz nissy-core-8d3fc9f5f9c0593fcae9c451efe6c89c64dcbe84.zip | |
Added stop / pause / resume solve to API
Diffstat (limited to 'tools/400_solvetest')
| -rw-r--r-- | tools/400_solvetest/solve_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/400_solvetest/solve_test.c b/tools/400_solvetest/solve_test.c index 1bfe851..73e6e8e 100644 --- a/tools/400_solvetest/solve_test.c +++ b/tools/400_solvetest/solve_test.c | |||
| @@ -57,7 +57,8 @@ void run(void) { | |||
| 57 | continue; | 57 | continue; |
| 58 | } | 58 | } |
| 59 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, | 59 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, |
| 60 | 0, 20, 1, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats); | 60 | 0, 20, 1, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats, |
| 61 | NULL, NULL); | ||
| 61 | if (n == 0) { | 62 | if (n == 0) { |
| 62 | printf("Error: no solution\n"); | 63 | printf("Error: no solution\n"); |
| 63 | return; | 64 | return; |
| @@ -78,7 +79,8 @@ void run(void) { | |||
| 78 | continue; | 79 | continue; |
| 79 | } | 80 | } |
| 80 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, | 81 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, |
| 81 | 0, 20, 100, 0, 0, size, buf, SOL_BUFFER_LEN, sol, stats); | 82 | 0, 20, 100, 0, 0, size, buf, SOL_BUFFER_LEN, sol, stats, |
| 83 | NULL, NULL); | ||
| 82 | if (check_all(sol, s[i].solutions)) { | 84 | if (check_all(sol, s[i].solutions)) { |
| 83 | printf("All solutions are correct\n"); | 85 | printf("All solutions are correct\n"); |
| 84 | } else { | 86 | } else { |
