diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-21 20:33:47 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-02-21 20:33:47 +0100 |
| commit | 8c2a0d07a0a10940cb6aedc461d29fc8725a9839 (patch) | |
| tree | 7c09d2b4bba9dc02a750a99cdf2513ab89f627a4 | |
| parent | 51a3278a0b189057ea488c1a7a1fab1447369617 (diff) | |
| download | nissy-8c2a0d07a0a10940cb6aedc461d29fc8725a9839.tar.gz nissy-8c2a0d07a0a10940cb6aedc461d29fc8725a9839.zip | |
Fixed bug in using niss
| -rw-r--r-- | TODO.md | 5 | ||||
| -rwxr-xr-x | nissy.exe | bin | 788679 -> 788679 bytes | |||
| -rw-r--r-- | src/solve.c | 2 |
3 files changed, 5 insertions, 2 deletions
| @@ -13,7 +13,10 @@ It's more of a personal reminder than anything else. | |||
| 13 | * Free large tables from memory before exit (this is not strictly necessary, | 13 | * Free large tables from memory before exit (this is not strictly necessary, |
| 14 | but can help with WSL bugs) | 14 | but can help with WSL bugs) |
| 15 | ### Installation | 15 | ### Installation |
| 16 | * Automatically download tables as an option for gen command | 16 | * At startup, check if tables are all there; if not, print an error message |
| 17 | suggesting to run `nissy gen -t 8` (or more than 8). Is it actually | ||
| 18 | possible to make table generation at least 3x faster? | ||
| 19 | * make 8 threads default for gen? | ||
| 17 | ### Documentation | 20 | ### Documentation |
| 18 | * Write an examples.md file | 21 | * Write an examples.md file |
| 19 | * More screenshots! | 22 | * More screenshots! |
| Binary files differ | |||
diff --git a/src/solve.c b/src/solve.c index 0bd1de7..b9f5000 100644 --- a/src/solve.c +++ b/src/solve.c | |||
| @@ -368,7 +368,7 @@ niss_makes_sense(DfsArg *arg) | |||
| 368 | Cube testcube; | 368 | Cube testcube; |
| 369 | 369 | ||
| 370 | testcube = apply_move(inverse_move(arg->last1), (Cube){0}); | 370 | testcube = apply_move(inverse_move(arg->last1), (Cube){0}); |
| 371 | return arg->current_alg->len == 0 || arg->step->is_done(testcube); | 371 | return arg->current_alg->len == 0 || !arg->step->is_done(testcube); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | static bool | 374 | static bool |
