Net: use the new findloop for loop detection.

I've removed the old algorithm (the one described as 'footpath dsf' in
the findloop.c appendix comment, though I hadn't thought of that name
at the time), and replaced it with calls to the new API.

This should have no functional effect: there weren't any known bugs in
the previous loop-finder that affected currently supported play modes.
But this generality improvement means that non-orientable playing
surfaces could be supported in the future, which would have confused
the old algorithm. And Net, being the only puzzle as yet that's played
on a torus, is perhaps the one most likely to want to generalise
further at some point.
This commit is contained in:
Simon Tatham
2016-02-24 19:05:43 +00:00
parent deff331e5f
commit e862d4a79b
2 changed files with 54 additions and 187 deletions

2
net.R
View File

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