mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Dominosa: add area-parity deductions, at Basic level.
This is a technique I've had on the todo list (and been using by hand) for years: a domino can't be placed if it would divide the remaining area of the grid into pieces containing an odd number of squares. The findloop subsystem is already well set up for finding domino placements that would divide the grid, and the new is_bridge query function can now tell me the sizes of the area on each side of the bridge, which makes it trivial to implement this deduction by simply running findloop and iterating over the output array.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# -*- makefile -*-
|
||||
|
||||
DOMINOSA_EXTRA = laydomino dsf sort
|
||||
DOMINOSA_EXTRA = laydomino dsf sort findloop
|
||||
|
||||
dominosa : [X] GTK COMMON dominosa DOMINOSA_EXTRA dominosa-icon|no-icon
|
||||
|
||||
|
Reference in New Issue
Block a user