• Mahmoud Aglan's avatar
    fix: chess resign/draw sync — opponent now sees both actions · 7372dc29
    Mahmoud Aglan authored
    - match-live.js: always forward poll data to game (not only on move_count change)
      This was the root cause — resign/draw don't increment move_count, so the
      game never processed the status change or game_state update
    - game.php: all match operations now use supabaseService() to bypass RLS
      (handleGameMove, handleResign, handleComplete all failed silently with user token)
    - Add dedicated 'draw' action in game.php that atomically marks match completed
    - Draw acceptance now calls action:'draw' instead of writing game_state only
    - handleResign validates match isn't already completed (prevents double-resign)
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    7372dc29
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...
promo Loading commit data...
public Loading commit data...
screenshots Loading commit data...
test-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...
logof.png Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
qr-code.png Loading commit data...
test-tournament-swiss.mjs Loading commit data...
test-tournament-ui.mjs Loading commit data...