simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Tue Oct 24 18:56:51 BST 2023
TL;DR:
35f7965 Singles: fix error highlighting when grid is disconnected.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2023-10-24 18:56:51
commit 35f796542ee5d7e775643f526973aa75f483bf20
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=35f796542ee5d7e775643f526973aa75f483bf20;hp=2d9e414ee316b37143954150016e8f4f18358497
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Oct 24 18:52:12 2023 +0100
Singles: fix error highlighting when grid is disconnected.
The loop that selects one of the disconnected regions (represented as
equivalence classes in a dsf) to _not_ highlight as an error was
failing to call dsf_canonify() to get the canonical element of the
class.
Instead, it was relying on having met the canonical element of the
class first, because it iterates up the array in order, and in the old
dsf implementation, canonical elements were always minimal ones. But
the DSF refactoring made that untrue, so now we have to explicitly
canonify each value we come to.
Thanks to Steffen Bauer for the diagnosis and suggested fix.
singles.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the tartarus-commits
mailing list