chiark / gitweb /
Annoying special cases for Mines.
authorSimon Tatham <anakin@pobox.com>
Tue, 28 Jun 2005 06:59:27 +0000 (06:59 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 28 Jun 2005 06:59:27 +0000 (06:59 +0000)
commit08410651e05b0723073d53e7d75174767633bf87
tree4b50ec1063d20606891e015b85c12471f8c82791
parent76d50e69059aeebe8b47089615518a8b9e225d40
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.

[originally from svn r6025]
midend.c
mines.c
puzzles.h