chiark / gitweb /
groupsolver: show working when using -v on ambiguous puzzles.
authorSimon Tatham <anakin@pobox.com>
Fri, 22 May 2020 18:00:01 +0000 (19:00 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 22 May 2020 18:01:52 +0000 (19:01 +0100)
unfinished/group.c

index c27c8f56ea1717070c07238a952ac3d09239bd82..3c565cb976b953f4d5bd10e61545afcd8619ad69 100644 (file)
@@ -2267,6 +2267,11 @@ int main(int argc, char **argv)
     }
 
     if (diff == DIFFCOUNT) {
+        if (really_show_working) {
+           solver_show_working = true;
+           memcpy(grid, s->grid, p->w * p->w);
+           ret = solver(&s->par, grid, DIFFCOUNT - 1);
+        }
        if (grade)
            printf("Difficulty rating: ambiguous\n");
        else