diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-09-16 17:35:54 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-09-17 21:22:28 +0200 |
| commit | 654e6c34637c9ba344a3620014de22f8f3dfb4ca (patch) | |
| tree | 35acae2c5baaca7af659aa9807c7f5a94647b1d1 /src | |
| parent | 3cb60bcbf4ab9af4e9452a43681f1e7176b0c88f (diff) | |
| download | nissy-core-654e6c34637c9ba344a3620014de22f8f3dfb4ca.tar.gz nissy-core-654e6c34637c9ba344a3620014de22f8f3dfb4ca.zip | |
Increase max solution len to 25 (for 2-step solver)
Diffstat (limited to 'src')
| -rw-r--r-- | src/nissy.c | 8 | ||||
| -rw-r--r-- | src/solvers/solutions_types_macros.h | 2 |
2 files changed, 5 insertions, 5 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; |
