shithub: puzzles

Download patch

ref: 8629ef8974aa379e578531c4b75ebe8c045286c8
parent: 7acc554805a471103bef0a74e4d64fef945dddb9
author: Simon Tatham <anakin@pobox.com>
date: Fri May 22 15:00:01 EDT 2020

groupsolver: show working when using -v on ambiguous puzzles.

--- a/unfinished/group.c
+++ b/unfinished/group.c
@@ -2267,6 +2267,11 @@
     }
 
     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