simon-svn: puzzles: simon
tartarus-commits at lists.tartarus.org
tartarus-commits at lists.tartarus.org
Tue Jun 28 07:59:27 BST 2005
SVN root: svn://ixion.tartarus.org/main
Changes by: simon
Revision: 6025
Date: 2005-06-28 07:59:27 +0100 (Tue, 28 Jun 2005)
Log message (13 lines):
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.
Modified files:
U puzzles/midend.c
U puzzles/mines.c
U puzzles/puzzles.h
Links:
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi?rev=6025&view=rev
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/midend.c?rev=6025&r1=6024&r2=6025
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/mines.c?rev=6025&r1=6024&r2=6025
http://www.tartarus.org/~simon-anonsvn/viewcvs.cgi/puzzles/puzzles.h?rev=6025&r1=6024&r2=6025
More information about the tartarus-commits
mailing list