chiark / gitweb /
Fix premature completion flash in Tracks.
authorSimon Tatham <anakin@pobox.com>
Fri, 23 Oct 2015 18:33:52 +0000 (19:33 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 23 Oct 2015 18:33:52 +0000 (19:33 +0100)
commitffe8639619dbccd838c5b226f84d4cf0eb99b69d
tree85280417a9d1fcf6a0e3bef3210e78c2d81715c3
parent3234912f921916a1b8da164fd61dc75579358577
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