feat: human vs human multiplayer with Supabase Realtime
- Matchmaking API: queue players by rating/time control, auto-pair
- Multiplayer game API: move validation, resign, draw offer/accept/decline, timeout, abort
- Supabase Realtime WebSocket client: subscribe to match row changes for live game sync
- Matchmaking page: animated search with wait timer, rating range expansion
- Live game page: full board with clocks, move list, resign/draw/abort controls
- Play page: prominent "ضد لاعب حقيقي" multiplayer button with time control selector
- DB: REPLICA IDENTITY FULL on matches table, realtime tenant fixed
- Routes: /matchmaking, /game-live?id=UUID
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
api/matchmaking.php
0 → 100644
api/multiplayer.php
0 → 100644
pages/game-live.php
0 → 100644
pages/matchmaking.php
0 → 100644
public/js/game-live.js
0 → 100644
public/js/realtime.js
0 → 100644
Please register or sign in to comment