ogarcia / opensudoku

Open Source Sudoku game for Android.
GNU General Public License v3.0
328 stars 144 forks source link

Undo to before mistake #59

Closed jlnordin closed 4 years ago

jlnordin commented 4 years ago

This PR adds a new feature to undo all progress since the game was in a solvable state -- that is, before any mistakes were made. This is in response to issue #43. This can be used if you realize you made a mistake but don't want to restart the whole puzzle.

This is implemented by first solving the puzzle, then undoing each action one-by-one, checking each step if there are any numbers entered that don't match the solved state.

Scenarios Tested