• Mahmoud Aglan's avatar
    fix: ensure result screens always show on win/loss in all games · 6790db43
    Mahmoud Aglan authored
    Ludo:
    - Add endingGame guard to prevent double endGame calls
    - Parse server winners from live polling (fixes empty leaderboard
      when opponent wins remotely)
    - Fix win/loss detection: last place = loss (was broken for 2-player)
    
    Chess:
    - Add 5s failsafe timer: result screen shows even if network hangs
    - Deduplicate navigation logic with navigated flag
    - Prevent double-navigation if both .then and failsafe fire
    
    Backgammon:
    - Add scene.exitGameMode() to both result navigation paths
      (was missing, could leave UI in game-mode state)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    6790db43
game.js 64.1 KB