diff options
Diffstat (limited to '')
| -rw-r--r-- | src/nissy.c | 8 | ||||
| -rw-r--r-- | src/solvers/solutions_types_macros.h | 2 | ||||
| -rw-r--r-- | test/140_appendsolution/07_unniss_cancel_nosol.out | 2 | ||||
| -rw-r--r-- | test/140_appendsolution/08_unniss_cancel_nosol_v2.out | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/nissy.c b/src/nissy.c index 0811861..5423d8d 100644 --- a/src/nissy.c +++ b/src/nissy.c | |||
| @@ -328,10 +328,10 @@ nissy_solve( | |||
| 328 | return NISSY_ERROR_INVALID_CUBE; | 328 | return NISSY_ERROR_INVALID_CUBE; |
| 329 | } | 329 | } |
| 330 | 330 | ||
| 331 | if (maxmoves > 20) { | 331 | if (maxmoves > SOLUTION_MAXLEN) { |
| 332 | LOG("[solve] 'maxmoves' larger than 20 not supported yet, " | 332 | LOG("[solve] 'maxmoves' larger than %d not supported yet, " |
| 333 | "setting it to 20\n"); | 333 | "setting it to %d\n", SOLUTION_MAXLEN, SOLUTION_MAXLEN); |
| 334 | maxmoves = 20; | 334 | maxmoves = SOLUTION_MAXLEN; |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | if (minmoves > maxmoves) { | 337 | if (minmoves > maxmoves) { |
diff --git a/src/solvers/solutions_types_macros.h b/src/solvers/solutions_types_macros.h index 4727e5a..cecd140 100644 --- a/src/solvers/solutions_types_macros.h +++ b/src/solvers/solutions_types_macros.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #define SOLUTION_MAXLEN 20 | 1 | #define SOLUTION_MAXLEN 25 |
| 2 | 2 | ||
| 3 | typedef struct { | 3 | typedef struct { |
| 4 | uint8_t nmoves; | 4 | uint8_t nmoves; |
diff --git a/test/140_appendsolution/07_unniss_cancel_nosol.out b/test/140_appendsolution/07_unniss_cancel_nosol.out index ed5ea65..cd355c7 100644 --- a/test/140_appendsolution/07_unniss_cancel_nosol.out +++ b/test/140_appendsolution/07_unniss_cancel_nosol.out | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | Number of solutions: 0 | 1 | Number of solutions: 0 |
| 2 | Shortest solution length: 21 | 2 | Shortest solution length: 26 |
| 3 | Used bytes: 0 | 3 | Used bytes: 0 |
diff --git a/test/140_appendsolution/08_unniss_cancel_nosol_v2.out b/test/140_appendsolution/08_unniss_cancel_nosol_v2.out index ed5ea65..cd355c7 100644 --- a/test/140_appendsolution/08_unniss_cancel_nosol_v2.out +++ b/test/140_appendsolution/08_unniss_cancel_nosol_v2.out | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | Number of solutions: 0 | 1 | Number of solutions: 0 |
| 2 | Shortest solution length: 21 | 2 | Shortest solution length: 26 |
| 3 | Used bytes: 0 | 3 | Used bytes: 0 |
