While the game of chess generally does no allow move undo/redo, it is useful to have the option to undo an unintentional move in the digital version of chess. Especially when playing on touchscreen devices (like an iPad) it is pretty easy to tap on the wrong space or unintentionally release a drag when making a move. These situation are quite frustrating and can ruin a game.
Suggested fix: the settings modal could contain an option undo the last move.
Note: Currently the chess logic does not store previous states or track the moves anywhere. In order to undo a move we need to first implement some mechanism to store the state of the game (probably as fen notation) and restore the game to a previous state (again, using FEN).
While the game of chess generally does no allow move undo/redo, it is useful to have the option to undo an unintentional move in the digital version of chess. Especially when playing on touchscreen devices (like an iPad) it is pretty easy to tap on the wrong space or unintentionally release a drag when making a move. These situation are quite frustrating and can ruin a game.
Suggested fix: the settings modal could contain an option undo the last move.
Note: Currently the chess logic does not store previous states or track the moves anywhere. In order to undo a move we need to first implement some mechanism to store the state of the game (probably as fen notation) and restore the game to a previous state (again, using FEN).