Slant: use the new findloop for loop detection.

The old face-dsf based loop detector is gone, and now we just call
findloop instead.

This is just a code cleanup: it doesn't fix any bugs that I know of.
In principle, it provides the same futureproofing we gained by making
the same change in Net, but Slant as a puzzle is less adaptable to
topologically interesting surfaces - in particular, you _can't_ play
it on any edgeless surface like a torus or Klein bottle, because no
filled grid can be loop-free in the first place. (The only way a
connected component can avoid having a loop surrounding it is if it
connects to the grid edge, so there has to _be_ a grid edge.) But you
could play Slant on a Mobius strip, I think, so perhaps one day...
This commit is contained in:
Simon Tatham
2016-02-24 19:10:16 +00:00
parent e862d4a79b
commit a2380d277a
2 changed files with 54 additions and 80 deletions

View File

@ -1,6 +1,6 @@
# -*- makefile -*-
SLANT_EXTRA = dsf
SLANT_EXTRA = dsf findloop
slant : [X] GTK COMMON slant SLANT_EXTRA slant-icon|no-icon