vitogit / vue-chessboard

Chessboard vue component to load positions, create positions and see threats
http://vitomd.com/vue-chessboard-examples/
GNU General Public License v3.0
165 stars 49 forks source link

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

Open frazereastman opened 3 years ago

frazereastman commented 3 years ago

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?

vitogit commented 3 years ago

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