From ac6fd11ddad3cc52adeeb16a49f71666549fa547 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 9 Sep 2014 14:20:10 +0000 Subject: 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. [originally from svn r10223] --- range.R | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'range.R') diff --git a/range.R b/range.R index 1a3684b..900e3a0 100644 --- a/range.R +++ b/range.R @@ -1,10 +1,12 @@ # -*- makefile -*- -range : [X] GTK COMMON range range-icon|no-icon +RANGE_EXTRA = dsf -range : [G] WINDOWS COMMON range range.res|noicon.res +range : [X] GTK COMMON range RANGE_EXTRA range-icon|no-icon -ALL += range[COMBINED] +range : [G] WINDOWS COMMON range RANGE_EXTRA range.res|noicon.res + +ALL += range[COMBINED] RANGE_EXTRA !begin am gtk GAMES += range -- cgit v1.1