4 ms·
How is it being done client side?
by MichaelZuo 2y ago
How is it being done client side?
- stevage 2y agoWell 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.
- 4star3star 2y agoThis 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.
- compiler-guy 2y agoFreechess 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 https://eprint.iacr.org/2004/203.pdf