simon-git: puzzles (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Mar 25 22:38:11 BST 2018


TL;DR:
  c6e0161 Fix false-positive completion detection in X Solo.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2018-03-25 22:38:11

commit c6e0161dd475415316ed66dc82794d68e52f0025
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=c6e0161dd475415316ed66dc82794d68e52f0025;hp=2adf0052d66eae88c7a5e55e67fe16e13f7018b5
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Mar 25 22:27:38 2018 +0100

    Fix false-positive completion detection in X Solo.
    
    Spotted by Michael Quevillon. After checking the set of digits
    appearing in one of the two main grid diagonals, we weren't clearing
    the used[] array before using it to check the same thing about the
    other diagonal. So if the first diagonal we check has one of
    everything, then the second will be misidentified as correct (for the
    purposes of game-completion detection, although not error
    highlighting) even if it doesn't have one of everything.

 solo.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the tartarus-commits mailing list