simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Tue Sep 9 15:20:10 BST 2014


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       10223
Date:           2014-09-09 15:20:10 +0100 (Tue, 09 Sep 2014)

Log message (8 lines):
Improve connectedness-error highlighting in Range.

The previous approach of scanning the grid by depth-first search was
fine for deciding whether it was connected, but not so good for
pointing out where the mistake was in the grid. Replaced that code
with a dsf-based version, which identifies all connected components so
that an easy followup pass can highlight all but the largest as
erroneous.

Modified files:
U   puzzles/range.R
U   puzzles/range.c

Links:
http://svn.tartarus.org/sgt/?rev=10223&view=rev
http://svn.tartarus.org/sgt/puzzles/range.R?rev=10223&r1=10222&r2=10223
http://svn.tartarus.org/sgt/puzzles/range.c?rev=10223&r1=10222&r2=10223



More information about the tartarus-commits mailing list