rusdewey / mathdoku

Automatically exported from code.google.com/p/mathdoku
0 stars 0 forks source link

Add Undo feature #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Undo feature:
- Undo the latest user change to the board. Set everything (cell highlights, 
maybes, etc.) back to how it was before the "move".
- Initially support undo of just the last change.

Longer term, support:
- Undo of all user changes back to the beginning of the game.
- If the current grid is incorrect (an error has been made), support undo up to 
the move where the mistake was made.

Original issue reported on code.google.com by em...@srlee.com on 31 Dec 2010 at 12:00

GoogleCodeExporter commented 9 years ago
Undo - Step backwards to beginning of game.  Redo - Step forward from previous 
undo moves.

Original comment by rjs...@yahoo.com on 4 Jun 2011 at 3:15

GoogleCodeExporter commented 9 years ago
Perhaps the Undo should step between when the user fills in answer numbers. 

Original comment by jasper.m...@gmail.com on 28 Mar 2012 at 11:03

GoogleCodeExporter commented 9 years ago
Undo functionality added in revision80. Undo information is however not stored 
in a saved gamed. After saving the game, the undo information is cleared. 
Probably it is not too difficult to store this information, but it will 
increase the size of the gamefile a lot.

Original comment by paul.din...@gmail.com on 15 Mar 2013 at 3:26

GoogleCodeExporter commented 9 years ago
Of course we do need to store this information! After each onPause/onResume 
(for example when rotating the screen) the undo information is lost. This is 
very unfriendly to the user. Needs more work.

Original comment by paul.din...@gmail.com on 15 Mar 2013 at 3:31

GoogleCodeExporter commented 9 years ago
Resolved in revision115.

Original comment by paul.din...@gmail.com on 16 Mar 2013 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by paul.din...@gmail.com on 17 Mar 2013 at 11:18

GoogleCodeExporter commented 9 years ago
Tested in Revision 163: Undo all the way back to beginning of game works 
correctly. Undo history is also retained when saving/reloading a game.

Original comment by em...@srlee.com on 27 Mar 2013 at 1:24