java - Undo, Redo in Sudoku game Android -
i'm trying implement undo , redo button in android sudoku game, it's complicated cause user can draft(put in numbers think potentially answer cell), insert value think is, remove specific number draft or value , delete draft values. thinking of using stack holds sort of object saves state of object , pop revert back, can't seem find that. momento object seems closest, think saves 1 state , returns state. suggestions?
cell{ isnoteditable draftvalue value x y } sudokustep{ arraylist<cell> }
you can keep cells each step, , keep steps in arraylist move between steps. ofc have modify steps wheter user didn't redo , moved etc
Comments
Post a Comment