Re:What happens when you make a move in lichess.org?
by MichaelZuo on Wednesday October 23, 2024 @08:06PM
(#41930512)
How is it being done client side?
[ Parent
| on HN ]
Re:What happens when you make a move in lichess.org?
by stevage on Wednesday October 23, 2024 @08:34PM
(#41930707)
Well it's a long time since I played there. But it had custom chess clients, which I assume just recorded how much time your move actually took and sent that with the move.
Yes, it's easy to cheat with this, but it's very easy to cheat with chess anyway.
Re:What happens when you make a move in lichess.org?
by 4star3star on Thursday October 24, 2024 @09:45AM
(#41935439)
This makes the most sense. Start a timer when the UI actually hands control to the player whose move it is, stop the timer when they've completed their move, and simply subtract that from their remaining time. The interval gets sent to the server and relayed to the other player to update their opponent's clock accurately.
Re:What happens when you make a move in lichess.org?
by compiler-guy on Thursday October 24, 2024 @01:56AM
(#41932359)
Freechess shipped a binary called “timeseal” that did the calculations for you and encrypted the communications. It was not foolproof—-not by a long shot, but it also didn’t completely suck.
You can read about what became timeseal here. https://eprint.iacr.org/2004/203.pdf