simon-git: puzzles (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Fri Oct 23 19:43:20 BST 2015


TL;DR:
  ffe8639 Fix premature completion flash in Tracks.

Repository:     git://git.tartarus.org/simon/puzzles.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-10-23 19:43:20

commit ffe8639619dbccd838c5b226f84d4cf0eb99b69d
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=ffe8639619dbccd838c5b226f84d4cf0eb99b69d;hp=3234912f921916a1b8da164fd61dc75579358577
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Oct 23 19:33:52 2015 +0100

    Fix premature completion flash in Tracks.
    
    Commit 44e2690ab loosened check_completion's idea of what made a
    square count as 'having track in it' for purposes of checking
    violations of the row/column counts. Unfortunately, that loosened
    notion also applied to the check for the game being complete - so the
    game would announce a win as soon as you had every square shaded, even
    if you hadn't actually laid all the exact track positions down.
    
    Now we separately count up the number of track-ish squares and the
    number of fully completed ones, and use the former for error checking
    and the latter for completion checking.

 tracks.c |   20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)



More information about the tartarus-commits mailing list