Open OyvindSabo opened 2 years ago
This would be useful when persisting unfinished games. createGameFromMoves should also be able to use this data to reproduce the game.
createGameFromMoves
Actually, maybe the simplest is just to introduce undo moves which don't just remove the last move, but adds an actual undo move. Then the whole game state can be represented by a moves array.
This would be useful when persisting unfinished games.
createGameFromMoves
should also be able to use this data to reproduce the game.