diff options
| -rw-r--r-- | src/solvers/h48/checkdata.h | 4 | ||||
| -rw-r--r-- | tools/301_solve_file/solve_file.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/solvers/h48/checkdata.h b/src/solvers/h48/checkdata.h index d36d8cc..1ee053d 100644 --- a/src/solvers/h48/checkdata.h +++ b/src/solvers/h48/checkdata.h | |||
| @@ -135,7 +135,7 @@ struct { | |||
| 135 | [0] = 1051579940, | 135 | [0] = 1051579940, |
| 136 | [1] = 8136021316, | 136 | [1] = 8136021316, |
| 137 | [2] = 19024479822, | 137 | [2] = 19024479822, |
| 138 | [3] = 18851861220, | 138 | [3] = 1885186122, |
| 139 | }, | 139 | }, |
| 140 | }, | 140 | }, |
| 141 | }, | 141 | }, |
| @@ -216,7 +216,7 @@ checkdata_h48( | |||
| 216 | "table preamble\n", info.solver); | 216 | "table preamble\n", info.solver); |
| 217 | if (!distribution_equal(ed, info.distribution, em)) { | 217 | if (!distribution_equal(ed, info.distribution, em)) { |
| 218 | LOG("[checkdata] Distribution from the table preamble " | 218 | LOG("[checkdata] Distribution from the table preamble " |
| 219 | "does not matche the expected one\n"); | 219 | "does not match the expected one\n"); |
| 220 | return NISSY_ERROR_DATA; | 220 | return NISSY_ERROR_DATA; |
| 221 | } | 221 | } |
| 222 | 222 | ||
diff --git a/tools/301_solve_file/solve_file.c b/tools/301_solve_file/solve_file.c index 5976dc0..2fc3a98 100644 --- a/tools/301_solve_file/solve_file.c +++ b/tools/301_solve_file/solve_file.c | |||
| @@ -20,6 +20,7 @@ void run(void) { | |||
| 20 | for (i = 0; i < N; i++) { | 20 | for (i = 0; i < N; i++) { |
| 21 | printf("%" PRId64 ". %s\n", i+1, scrambles[i]); | 21 | printf("%" PRId64 ". %s\n", i+1, scrambles[i]); |
| 22 | printf("Solving scramble %s\n", scrambles[i]); | 22 | printf("Solving scramble %s\n", scrambles[i]); |
| 23 | fflush(stdout); | ||
| 23 | if (nissy_applymoves(NISSY_SOLVED_CUBE, scrambles[i], cube) | 24 | if (nissy_applymoves(NISSY_SOLVED_CUBE, scrambles[i], cube) |
| 24 | != NISSY_OK) { | 25 | != NISSY_OK) { |
| 25 | printf("Invalid scramble\n"); | 26 | printf("Invalid scramble\n"); |
| @@ -32,6 +33,7 @@ void run(void) { | |||
| 32 | printf("No solution found\n"); | 33 | printf("No solution found\n"); |
| 33 | else | 34 | else |
| 34 | printf("Solutions:\n%s\n", sol); | 35 | printf("Solutions:\n%s\n", sol); |
| 36 | fflush(stdout); | ||
| 35 | } | 37 | } |
| 36 | } | 38 | } |
| 37 | 39 | ||
