OyvindSabo / quoridor.js

MIT License
3 stars 0 forks source link

There should be a way to get the minimal data required to reproduce the game state #14

Open OyvindSabo opened 2 years ago

OyvindSabo commented 2 years ago

This would be useful when persisting unfinished games. createGameFromMoves should also be able to use this data to reproduce the game.

OyvindSabo commented 2 years ago

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.