Skip to content

Conversation

@marein
Copy link
Owner

@marein marein commented Jun 5, 2025

Add time controls, supporting two timer modes: a per-move timer (which resets every turn) and a standard game timer (sudden death) with a configurable increment added after each move. All time is measured in milliseconds. Until the end of the second move, games are aborted rather than timed out. A long-running server process continuously checks all active timers and automatically handles them. To address clock drift, the client synchronizes its clock with the server.

Additionally, redesign the profile and game pages to fit the new content.

Load test has been done with no drop in performance and scalability.

@marein marein self-assigned this Jun 5, 2025
@marein marein linked an issue Jun 5, 2025 that may be closed by this pull request
@marein marein force-pushed the 9-add-time-controls branch from 060c574 to 5b80fc8 Compare June 6, 2025 21:40
@marein marein force-pushed the 9-add-time-controls branch from 5b80fc8 to 77e26fd Compare June 6, 2025 21:50
This is part of the TimePerGame class now.
@marein marein force-pushed the 9-add-time-controls branch from c5821bd to beb1012 Compare June 7, 2025 08:28
@marein marein force-pushed the 9-add-time-controls branch from 747f385 to cfe4692 Compare June 8, 2025 14:03
@marein marein force-pushed the 9-add-time-controls branch from bcb8e2c to 184cc53 Compare June 9, 2025 13:35
@marein marein force-pushed the 9-add-time-controls branch from b6f3d3d to 6fe393d Compare June 10, 2025 20:15
@marein marein force-pushed the 9-add-time-controls branch from 6fe393d to 9eb1541 Compare June 10, 2025 20:16
@marein marein force-pushed the 9-add-time-controls branch from 3dab383 to bd30829 Compare June 10, 2025 21:01
@marein marein force-pushed the 9-add-time-controls branch from 758b85b to 074edd2 Compare June 12, 2025 18:06
@marein marein force-pushed the 9-add-time-controls branch 2 times, most recently from a35424d to 856ec56 Compare June 13, 2025 16:03
@marein marein force-pushed the 9-add-time-controls branch from 856ec56 to a3ccfce Compare June 13, 2025 16:43
@marein marein force-pushed the 9-add-time-controls branch 4 times, most recently from 9846a32 to e83987f Compare June 13, 2025 19:46
@marein marein force-pushed the 9-add-time-controls branch from a8a507c to 06a2bb3 Compare June 13, 2025 20:25
@marein marein force-pushed the 9-add-time-controls branch from fd7d81b to 9978b09 Compare June 15, 2025 13:20
@marein marein merged commit 4749189 into master Jun 15, 2025
1 check passed
@marein marein deleted the 9-add-time-controls branch June 15, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add time controls

2 participants