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 5c22df4e8600d49983f008f22e942a2dd120ad9a
parent 79500f46632ba50b1640d16983942b940dd7955f
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri, 27 Sep 2024 09:11:55 +0200

Fixed checkdata

Diffstat:
Msrc/nissy.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nissy.c b/src/nissy.c @@ -333,9 +333,12 @@ nissy_checkdata( char *buf; tableinfo_t info; - for (buf = (char *)data; readtableinfo(buf, &info); buf += info.next) + for (buf = (char *)data; readtableinfo(buf, &info); buf += info.next) { if (!checkdata(buf, &info)) return 1; + if (info.next == 0) + break; + } return 0; }