What happens when you make a move in lichess.org?
1–10 of 162 posts
Re: What happens when you make a move in lichess.org?
#2Just a wild guess: might be intended to lower the implementation barrier for new open-source software clients on new platforms, and/or preempt them from implementing subtle logic bugs that only show up much later.
The rules of chess are a bit tedious to implement, and you can easily get tired and code an edge-case bug that's almost invisible. Lichess itself did this—it once had a logic error that affected a very tiny number (exactly 7) of games,
https://github.com/lichess-org/database/issues/23 ("Before 2015: Some games with illegal moves were recorded")
(I apologize I couldn't find the specific patch that fixed this)
Re: What happens when you make a move in lichess.org?
#3Re: What happens when you make a move in lichess.org?
#4Re: What happens when you make a move in lichess.org?
#5- "While these moves could be calculated client-side, providing them server-side ensures consistency - especially for complex or esoteric chess variants - and optimizes performance on clients with limited processing capabilities or energy restrictions." Just a wild guess: might be intended to lower the implementation barrier for new open-source software clients on new platforms, and/or preempt them from implementing…
Validating a submitted move is distinct from listing valid moves. I assumed the server would need to validate regardless of providing a list to the client.
Re: What happens when you make a move in lichess.org?
#6- "While these moves could be calculated client-side, providing them server-side ensures consistency - especially for complex or esoteric chess variants - and optimizes performance on clients with limited processing capabilities or energy restrictions." Just a wild guess: might be intended to lower the implementation barrier for new open-source software clients on new platforms, and/or preempt them from implementing…
> and/or preempt them from implementing subtle logic bugs that only show up much later. Validating a submitted move is distinct from listing valid moves. I assumed the server would need to validate regardless of providing a list to the client.
Re: What happens when you make a move in lichess.org?
#7Re: What happens when you make a move in lichess.org?
#8what happens to those websocket connections when the API is updated or redeployed?
Re: What happens when you make a move in lichess.org?
#9I wish the article explained how it dealt with message loss from the at-most-once redis pub/sub channel
I will have to take a look, because whatever it's doing, it works very well!
Re: What happens when you make a move in lichess.org?
#10- "While these moves could be calculated client-side, providing them server-side ensures consistency - especially for complex or esoteric chess variants - and optimizes performance on clients with limited processing capabilities or energy restrictions." Just a wild guess: might be intended to lower the implementation barrier for new open-source software clients on new platforms, and/or preempt them from implementing…
Naturally, it's not possible to view this move anymore, but this game (https://lichess.org/XDQeUk6j#48) has everything up until the last legal move right before the illegal castling happened.