diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/300_solve_small/solve_small.c | 3 | ||||
| -rw-r--r-- | tools/301_solve_file/solve_file.c | 3 | ||||
| -rw-r--r-- | tools/302_solve_multisol/solve_multisol.c | 3 | ||||
| -rw-r--r-- | tools/400_solvetest/solve_test.c | 6 |
4 files changed, 10 insertions, 5 deletions
diff --git a/tools/300_solve_small/solve_small.c b/tools/300_solve_small/solve_small.c index dcd47c1..83a712a 100644 --- a/tools/300_solve_small/solve_small.c +++ b/tools/300_solve_small/solve_small.c | |||
| @@ -37,7 +37,8 @@ void run(void) { | |||
| 37 | continue; | 37 | continue; |
| 38 | } | 38 | } |
| 39 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, | 39 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, |
| 40 | 0, 20, 1, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats); | 40 | 0, 20, 1, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats, |
| 41 | NULL, NULL); | ||
| 41 | if (n == 0) | 42 | if (n == 0) |
| 42 | printf("No solution found\n"); | 43 | printf("No solution found\n"); |
| 43 | else | 44 | else |
diff --git a/tools/301_solve_file/solve_file.c b/tools/301_solve_file/solve_file.c index d9084fd..be4d1f5 100644 --- a/tools/301_solve_file/solve_file.c +++ b/tools/301_solve_file/solve_file.c | |||
| @@ -24,7 +24,8 @@ void run(void) { | |||
| 24 | continue; | 24 | continue; |
| 25 | } | 25 | } |
| 26 | nsols = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, | 26 | nsols = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, |
| 27 | 0, 20, 1, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats); | 27 | 0, 20, 1, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats, |
| 28 | NULL, NULL); | ||
| 28 | if (nsols == 0) | 29 | if (nsols == 0) |
| 29 | printf("No solution found\n"); | 30 | printf("No solution found\n"); |
| 30 | else | 31 | else |
diff --git a/tools/302_solve_multisol/solve_multisol.c b/tools/302_solve_multisol/solve_multisol.c index a2896a9..8f04b5f 100644 --- a/tools/302_solve_multisol/solve_multisol.c +++ b/tools/302_solve_multisol/solve_multisol.c | |||
| @@ -30,7 +30,8 @@ void run(void) { | |||
| 30 | continue; | 30 | continue; |
| 31 | } | 31 | } |
| 32 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, | 32 | n = nissy_solve(cube, solver, NISSY_NISSFLAG_NORMAL, |
| 33 | 0, 20, nsol, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats); | 33 | 0, 20, nsol, -1, 0, size, buf, SOL_BUFFER_LEN, sol, stats, |
| 34 | NULL, NULL); | ||
| 34 | if (n == 0) | 35 | if (n == 0) |
| 35 | printf("No solution found\n"); | 36 | printf("No solution found\n"); |
| 36 | else | 37 | else |
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 { |
