From 65dafc92153399336f200a566bc91f869fdfcbb1 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Wed, 1 Oct 2025 11:20:31 -0500 Subject: [PATCH] feat: skip countdown for train mode (sprint) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Train mode now starts immediately when clicking "Start Your Race!" button, bypassing the 3-2-1-GO countdown. Other game modes (practice, survival) still show the countdown as expected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../app/games/complement-race/components/GameControls.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/games/complement-race/components/GameControls.tsx b/apps/web/src/app/games/complement-race/components/GameControls.tsx index 0400bff7..32eb43bc 100644 --- a/apps/web/src/app/games/complement-race/components/GameControls.tsx +++ b/apps/web/src/app/games/complement-race/components/GameControls.tsx @@ -23,7 +23,13 @@ export function GameControls() { const handleStartRace = () => { // Update URL to match selected game style when starting router.push(`/games/complement-race/${state.style}`) - dispatch({ type: 'START_COUNTDOWN' }) + + // Train mode (sprint) doesn't need countdown - start immediately + if (state.style === 'sprint') { + dispatch({ type: 'BEGIN_GAME' }) + } else { + dispatch({ type: 'START_COUNTDOWN' }) + } } return (