chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acc554
)
groupsolver: show working when using -v on ambiguous puzzles.
author
Simon Tatham
<anakin@pobox.com>
Fri, 22 May 2020 18:00:01 +0000
(19:00 +0100)
committer
Simon Tatham
<anakin@pobox.com>
Fri, 22 May 2020 18:01:52 +0000
(19:01 +0100)
unfinished/group.c
patch
|
blob
|
history
diff --git
a/unfinished/group.c
b/unfinished/group.c
index c27c8f56ea1717070c07238a952ac3d09239bd82..3c565cb976b953f4d5bd10e61545afcd8619ad69 100644
(file)
--- a/
unfinished/group.c
+++ b/
unfinished/group.c
@@
-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