jes / isopath

Web-based implementation of Isopath, a zero-sum boardgame invented by pocket83
https://isopath.jes.xxx/
4 stars 2 forks source link

Export and import - record of game #4

Open pavellauko opened 6 years ago

pavellauko commented 6 years ago

would be nice.

we can inspire here: https://cs.wikipedia.org/wiki/PGN https://www.reddit.com/r/Tak/wiki/portable_tak_notation https://boardgamegeek.com/thread/1070444/hive-notation-system-used-boardspacenet

jes commented 6 years ago

I think a good start would be to add an interface for stepping backwards/forwards through the game that's already loaded, and then to add a way to paste in a game.

The Isopath game object already has provision for undoing moves, so we'd probably just want to add a "redo" stack and a redo function, and then some undo/redo buttons.

I don't know whether it would be worth trying to support arbitrary trees of variations, or just a "main line" and a single other variation, or just basic undo/redo of the main line. I think lichess lets you try out a variation without forgetting what the main line was, but it doesn't keep track of multiple variations at once.