From d25b888ffb3915d2d482442ab708ba3e159af512 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Thu, 23 Oct 2025 17:06:06 -0500 Subject: [PATCH] feat(card-sorting): add game mode selector UI to setup phase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add UI allowing players to choose between Solo and Collaborative game modes. The selector includes visual feedback and descriptive text for each mode. Changes: - Add game mode selection buttons (👤 Solo / 👥 Collaborative) - Add descriptive text explaining each mode - Update setConfig to accept 'gameMode' field - Add gameMode validation in Validator 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../card-sorting/components/SetupPhase.tsx | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/apps/web/src/arcade-games/card-sorting/components/SetupPhase.tsx b/apps/web/src/arcade-games/card-sorting/components/SetupPhase.tsx index 5ee8602c..de1ec44a 100644 --- a/apps/web/src/arcade-games/card-sorting/components/SetupPhase.tsx +++ b/apps/web/src/arcade-games/card-sorting/components/SetupPhase.tsx @@ -131,6 +131,82 @@ export function SetupPhase() { + {/* Game Mode Selection */} +
+ +
+ + +
+

+ {state.gameMode === 'solo' + ? 'Play alone and beat your best score' + : 'Work together with other players in real-time'} +

+
+ {/* Action Buttons */}