chiark / gitweb /
Vary the behaviour of Mines's solve function depending on whether the
authorSimon Tatham <anakin@pobox.com>
Sun, 10 Jun 2012 07:20:18 +0000 (07:20 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 10 Jun 2012 07:20:18 +0000 (07:20 +0000)
commit6567260eb0af75a3c82f4a8a8292c6446d94fd98
tree4eb9dde88b8c0ae8e87f44a6e485d19473873efa
parent48e9767a206420294147f802a8a2cc5c9e77141c
Vary the behaviour of Mines's solve function depending on whether the
user is already in the 'dead' state when they press it. If so, we
reveal the rest of the mines in the grid as if it were the Windows
Minesweeper 'you lose' display, which provides information showing
what the user got wrong. (Otherwise they have to repeatedly flick back
and forth between Solve and Undo if they want to work out which flag
they placed wrongly.)

If you press Solve while alive, however, the existing behaviour
remains unchanged.

(This feature was suggested by Clive Jones a couple of weeks after I
first wrote Mines, and I've finally got round to doing it!)

[originally from svn r9561]
mines.c