Workshop › 2048 › Step 26 of 26
Everyone makes a bad move sometimes. Add an undo: the U key takes the last move back, board and score, once.
Keep a copy of the board and the score before each real move. The U key (small or capital) restores them once; a second U does nothing until the next move. Undo also brings a finished game back to playing.
Skills: Game states, Arrays and objects