mliebelt / pgn-viewer

Simple PGN viewer with the necessary features to display chess games
GNU General Public License v3.0
163 stars 44 forks source link

Use chessground (lichess.org UI) as back-end #78

Closed xeyownt closed 6 years ago

xeyownt commented 6 years ago

I'm also a big fan of the lichess lean interface. Their chess board UI, called Chessground, is open-source, so maybe we could use it as UI back-end. It supports arrows and highlighting, is very fast...

Likely not an easy task though.

mliebelt commented 6 years ago

That looks very interesting. I will of course look at it, and perhaps adopt it. At least it will be a good (the best) candidate for my reimplementation of PgnViewerJS named PgnViewerTS (rewrite based on Typescript).

xeyownt commented 6 years ago

Gosh, I know this is off-topic, but I just saw the intro video on TypeScript, and this looks really amazing. I'm switching from hating JavaScript to falling in love ;-)

mliebelt commented 6 years ago

I did a first spike (1 hour), and it is really promising. Copying some files to new locations, adjusting the API a little bit, and I had pgnBoard and (to my astonishment) pgnView as well. I will continue with my experiment, and see, if I can fix most of the configuration, but if that goes well, I will switch sooner than later to chessground :-)

mliebelt commented 6 years ago

image

xeyownt commented 6 years ago

Great news and impressive result! I will then think more in depth how we could exploit the highlighting/arrows possibilities in the wiki text. I guess the best would be to agree on some formatting in the PGN annotation field. Arrows could also be displayed automatically in case there are several variations.

mliebelt commented 6 years ago

Cleaned up a lot of things, checked unit tests, updated to newest version (again). All other small things will come later then.