LiChess
Last updated
Was this helpful?
Last updated
Was this helpful?
Summarizing my attempts to understand LiChess.
The main diagram is not very clear, or helpful.
Where's Redis? Or does the diagram predate it?
They stream board events with ndjson . It's long polling I suppose?
Can't find API to actually make moves. I suppose it's done via websockets?
Can't find API to actually do puzzles. Only see API to get daily puzzle. Perhaps it's also done with web sockets.
There's an API to send a message, but I see no API to view messages.
Doesn't seem to have many tests.
Few comments, very hard to follow which class is doing what.
No tests apparently.
WFH is anaMove?
Tracking how a move is sent to the server:
Overall, seems very basic stuff. It feels like it's possible to do a lot better.
Board literals in tests whoa
WS deploy command whoa Just like that.
Very magic numbers are all over the place
Actually receive move from Lila
Send the move to watching clients
Arguments: t, d, o. How is anyone supposed to understand what it means?
Main script (?)
Generator
Extracting puzzle from a game