chiark / gitweb /
Pattern: fix solver's handling of empty rows.
authorSimon Tatham <anakin@pobox.com>
Fri, 11 Dec 2015 18:54:56 +0000 (18:54 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 12 Dec 2015 10:54:03 +0000 (10:54 +0000)
commitd1219cac3c2e0adf58a477e442a8656bcb55ed0f
tree649847fcfb1dbc99089b8a5e1db8d3334e8c2436
parenta845e6476d3f565454d487fda2af65f0062e063f
Pattern: fix solver's handling of empty rows.

The algorithm for deducing how many squares in a row could be filled
in just from the initial clue set was focusing solely on _black_
squares, and forgot that if a row has a totally empty clue square then
everything in it can be filled in as white!

Now the solver can cope with puzzles such as 3x3:/1///1/ , where it
would previously have spuriously considered that it had no idea where
to start.
pattern.c