h48

A prototype for an optimal Rubik's cube solver, work in progress.
git clone https://git.tronto.net/h48
Download | Log | Files | Refs | README | LICENSE

commit 691da8f06614418ed847bdeefa4e708c372a3ecf
parent c8a14e0e2789dd87df69c56d94b60d4c53a1d908
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Sat, 19 Apr 2025 11:18:12 +0200

Fixed shell usage of optimal and maxsolutions

Diffstat:
Mshell/shell.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/shell.c b/shell/shell.c @@ -484,7 +484,7 @@ solve_exec(args_t *args) } if (args->maxsolutions == 0) - args->maxsolutions = args->optimal >= 0 ? UINT_MAX : 1; + args->maxsolutions = args->optimal == 20 ? 1 : UINT_MAX; buf = malloc(size); read = fread(buf, size, 1, file);