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 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nissy.c') 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) { -- cgit v1.3