chiark / gitweb /
New configuration option in Unruly, to enable a mode in which no two
authorSimon Tatham <anakin@pobox.com>
Sun, 5 May 2013 20:21:50 +0000 (20:21 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 5 May 2013 20:21:50 +0000 (20:21 +0000)
commit2f7831bb1626d82baff706e507d61a820ad84df1
treeef1e6952fd4dacfbc54b2a90d99af6eca4333880
parent16de3a8f22cf9b618372dfe2fe438b21a54f71d4
New configuration option in Unruly, to enable a mode in which no two
rows are permitted to have exactly the same pattern, and likewise
columns. (A row and a column can match, though.) This rule is
sometimes used, but not always; http://www.binarypuzzle.com/ in
particular has it (as a user just pointed out).

Since the filled-grid-generation stage of Unruly is implemented by
repeatedly choosing a square and then calling the solver to fill in
all its consequences, simply adding a solver mode conditional on this
flag is sufficient to do the whole of the interesting part of the job.

[originally from svn r9837]
unruly.c