Annoying special cases for Mines.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 28 Jun 2005 06:59:27 +0000 (06:59 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 28 Jun 2005 06:59:27 +0000 (06:59 +0000)
commit0a6892dbcbd8ecb9be7e88a0368926fe521ae479
tree4b50ec1063d20606891e015b85c12471f8c82791
parentdf11cd4e43b66b17df44a1e933f5c71361dc13a4
Annoying special cases for Mines.

Firstly, the `Restart' function now reconstructs an initial game
state from the game description rather than dup_game(states[0]).
This means that Restart in a game of Mines restarts to just _after_
the initial click, so you can resume the puzzle-solving part without
having to remember where you placed that click.

Secondly, the midend now contains a second `private' game desc,
which is guaranteed to actually reconstruct the initial game_state
correctly (which Mines's publicly visible game descs tend not to,
since they describe a state which has already had the first click).
This should make serialising of Mines more sensible.

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