lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.64k stars 2.28k forks source link

live embeds #7507

Open hyperchessbot opened 4 years ago

hyperchessbot commented 4 years ago

Motivation

My bot is running in a web server, and I would like to show its ongoing game in an iframe on the bot's homepage.

Problem

When I embed the game with the url constructed the same way as the analysis board's embed function would construct, the game panel is shown with appropriate information on players, it has a game link, an open button etc., however the move list is empty. Strangely enough, I encountered refreshes of an ongoing game, where the move list was showing a few moves. This latter behavior was accidental, I could not reproduce it. ( When the game is finished, all the move list is shown together with the result. )

I know that this is a kind of hacking, because lichess officially only provides an embed link from the analysis board, and ongoing games have no analysis board.

Feature request

Update the move list of embedded ongoing games and show their current position.

screenshot of embedded ongoing game

hyperchessbot commented 4 years ago

All right, I solved it using nice minimal chessboard https://github.com/moroshko/chessboard .

However it cannot match the richness of lichess presentation.

screenshot with own solution