Vary the behaviour of Mines's solve function depending on whether the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 10 Jun 2012 07:20:18 +0000 (07:20 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 10 Jun 2012 07:20:18 +0000 (07:20 +0000)
commita5f94f6b1b81d18ca58871acdb645e68d64925bc
tree4eb9dde88b8c0ae8e87f44a6e485d19473873efa
parent9856b2637ad6d34dc05b6a4b41a0809db619537c
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!)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9561 cda61777-01e9-0310-a592-d414129be87e
mines.c