• Mahmoud Aglan's avatar
    fix: wire match-live into Chess and Ludo — enables reconnect on refresh · 317f8d20
    Mahmoud Aglan authored
    Chess game scene:
    - Imports and calls matchLive.start(matchId, 'chess', callbacks)
    - Creates localStorage entry → browser refresh auto-resumes
    - matchLive.session.destroy() on endGame → clears recovery
    
    Ludo game scene:
    - Same pattern: matchLive.start(matchId, 'ludo', callbacks)
    - Clears session on endGame
    
    Now the flow works:
    1. Player enters live game → matchLive.start() saves to localStorage
    2. Player refreshes browser → engine boot finds recovery → verifies server → auto-rejoins
    3. Game ends normally → matchLive.session.destroy() clears localStorage
    4. Player goes to homepage after game → no recovery popup (correct)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    317f8d20
Name
Last commit
Last update
.claude Loading commit data...
ChessPieces Loading commit data...
Connections and docs Loading commit data...
Logo El3ab Loading commit data...
admin Loading commit data...
api Loading commit data...
app icons Loading commit data...
config Loading commit data...
docs Loading commit data...
includes Loading commit data...
ludo-playtest Loading commit data...
public Loading commit data...
screenshots Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
ARCHITECTURE.md Loading commit data...
ASSET_REGISTRY.json Loading commit data...
ASSET_REGISTRY.md Loading commit data...
BUILD_ORDER.md Loading commit data...
DATABASE_REFERENCE.md Loading commit data...
DESIGN.md Loading commit data...
Dockerfile Loading commit data...
PLAN.md Loading commit data...
Stockfishbotsapi.txt Loading commit data...
bell.png Loading commit data...
captain-definition Loading commit data...
index.php Loading commit data...