chiark / gitweb /
Net: use the new findloop for loop detection.
authorSimon Tatham <anakin@pobox.com>
Wed, 24 Feb 2016 19:05:43 +0000 (19:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 24 Feb 2016 19:05:43 +0000 (19:05 +0000)
commite862d4a79b934a20d8c4cd283ff8292681b63314
treed96b38c75ea8e08ba5f3616fc8e1ff4880157c16
parentdeff331e5f8d46215b967b7eaa7f64b13878785a
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.
net.R
net.c