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 15fe089b3e625cb6d3a19dee661f4fc9c6224699
parent 388b55b4ea644aa1b6074a70652b8f62e7755280
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri, 27 Sep 2024 09:11:04 +0200

Merge branch 'master' of tronto.net:h48

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; }