From 654e6c34637c9ba344a3620014de22f8f3dfb4ca Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 16 Sep 2026 17:35:54 +0200 Subject: Increase max solution len to 25 (for 2-step solver) --- src/nissy.c | 8 ++++---- src/solvers/solutions_types_macros.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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( return NISSY_ERROR_INVALID_CUBE; } - if (maxmoves > 20) { - LOG("[solve] 'maxmoves' larger than 20 not supported yet, " - "setting it to 20\n"); - maxmoves = 20; + if (maxmoves > SOLUTION_MAXLEN) { + LOG("[solve] 'maxmoves' larger than %d not supported yet, " + "setting it to %d\n", SOLUTION_MAXLEN, SOLUTION_MAXLEN); + maxmoves = SOLUTION_MAXLEN; } 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 @@ -#define SOLUTION_MAXLEN 20 +#define SOLUTION_MAXLEN 25 typedef struct { uint8_t nmoves; -- cgit v1.3