aboutsummaryrefslogtreecommitdiff
path: root/pattern.R
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2015-12-11 18:09:41 +0000
committerSimon Tatham <anakin@pobox.com>2015-12-12 10:56:34 +0000
commitf061101210352b9783085ba37e1c58f1fac89862 (patch)
tree21b5eca596682e1bdf29fa8f25cf7c7e9ced0317 /pattern.R
parentd1219cac3c2e0adf58a477e442a8656bcb55ed0f (diff)
downloadpuzzles-f061101210352b9783085ba37e1c58f1fac89862.zip
puzzles-f061101210352b9783085ba37e1c58f1fac89862.tar.gz
puzzles-f061101210352b9783085ba37e1c58f1fac89862.tar.bz2
puzzles-f061101210352b9783085ba37e1c58f1fac89862.tar.xz
Pattern: add a system of immutable pre-filled grid squares.
The game previously only supported numeric clues round the edge; but if for some reason you really want a puzzle with a specific solution bitmap and that bitmap doesn't happen to be uniquely soluble from only its row and column counts, then this gives you a fallback approach of pre-filling a few grid squares to resolve the ambiguities. (This also applies if the puzzle is uniquely soluble *in principle* but not by Pattern's limited solver - for example, Pattern has never been able to solve 4x4:2/1/2/1/1.1/2/1/1 and still can't, but now it can solve 4x4:2/1/2/1/1.1/2/1/1,Ap which has the hard part done for it.) Immutable squares are protected from modification during play, and used as initial information by the solver.
Diffstat (limited to 'pattern.R')
0 files changed, 0 insertions, 0 deletions