From 5e392007f52dd2a8a2e523560f6e8a62d1f7523d Mon Sep 17 00:00:00 2001 From: Muhammad Maaz <22pwbcs0933@uetpeshawar.edu.pk> Date: Tue, 18 Aug 2026 19:48:39 -0700 Subject: [PATCH] Reduce GAME_TIME_MS from 10 hours to 10 minutes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Timer constant bug — GAME_TIME_MS = 10*60*60*1000 in Game.ts = 10 hours, should be 10*60*1000 (10 min) --- apps/ws/src/Game.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ws/src/Game.ts b/apps/ws/src/Game.ts index 718d9a93..8b543697 100644 --- a/apps/ws/src/Game.ts +++ b/apps/ws/src/Game.ts @@ -11,7 +11,7 @@ import { socketManager, User } from './SocketManager'; type GAME_STATUS = 'IN_PROGRESS' | 'COMPLETED' | 'ABANDONED' | 'TIME_UP' | 'PLAYER_EXIT'; type GAME_RESULT = "WHITE_WINS" | "BLACK_WINS" | "DRAW"; -const GAME_TIME_MS = 10 * 60 * 60 * 1000; +const GAME_TIME_MS = 10 * 60 * 1000; export function isPromoting(chess: Chess, from: Square, to: Square) { if (!from) {