Build Multiplayer Tic-Tac-Toe
Build a real-time 2-player Tic-Tac-Toe game with matchmaking and game rooms.
Requirements
Create or join game rooms with a shareable room codeReal-time move synchronization between two playersTurn indicator showing whose turn it isWin/draw detection with winning line highlightGame history: list of completed games with outcomesRematch button after game endsClean, animated UI (move transitions, win celebration)Technical Notes
Use WebSockets or a real-time service. Server validates moves to prevent cheating. Can use Next.js API routes with WebSocket upgrade.
Bonus Points
Spectator mode for room linksAI opponent for single playerCustom board sizes (4x4, 5x5)