vue-chessboard icon indicating copy to clipboard operation
vue-chessboard copied to clipboard

Is it possible to load a position, along with its move history?

Open frazereastman opened this issue 4 years ago • 1 comments

Is it possible to load a position, along with its move history and undo/ redo moves similar to how you may do so on Lichess analytic tool?

frazereastman avatar Feb 23 '21 00:02 frazereastman

It is outside the scope of this project. Main goal is just show positions. Probably you could do it extending the component (https://github.com/vitogit/vue-chessboard#extended-component-play-vs-random-ai) and overwriting some methods like https://github.com/vitogit/vue-chessboard/blob/master/src/components/chessboard/index.vue#L161 to load a pgn instead of a fen. But you need to manage the history, undo/redo buttons logic, etc

vitogit avatar Feb 23 '21 06:02 vitogit