simon-git: puzzles (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Mar 13 20:11:09 GMT 2017
TL;DR:
eedea41 Net: rework status line to cope with empty squares.
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: 2017-03-13 20:11:09
commit eedea4132043cc4c788ee89f1ccb0783893125c5
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=eedea4132043cc4c788ee89f1ccb0783893125c5;hp=0bcb32c9132020ffe2985b542951b05c6ab58b2a
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Mar 13 19:58:22 2017 +0000
Net: rework status line to cope with empty squares.
Another oddity involving an empty square is that if it coincides with
the source square for highlights (either by original design of the
game id, or because the player Ctrl-moves the source square into an
empty grid cell during play), then everything stops being lit up as
active. That's fine - you can still play the game using other
indications of error, such as the loop detection highlight - but it
looks silly for the status line to say 'Active: 1/lots'. So in that
situation I suppress the 'active' counter completely; it comes back
when you move the source square to somewhere it's _possible_ to
highlight more than one square.
While I'm at it, I've also removed the active counter in the case
where the game is completely solved, because in that situation it's
more or less unnecessary anyway, and that way the normal course of
play on the default small grid size doesn't overflow the available
status line space.
net.c | 43 +++++++++++++++++++++++++++++++++----------
1 file changed, 33 insertions(+), 10 deletions(-)
More information about the tartarus-commits
mailing list