• Mahmoud Aglan's avatar
    feat: real bot chess games via Stockfish + interactive game viewer · 2ab774d7
    Mahmoud Aglan authored
    Part A - Bot Game Engine (BotGamePlayerService):
    - Maps player ratings to 7 bot personalities (amina→grandmaster)
    - Plays actual chess games move-by-move via Stockfish API
    - Full FEN tracking, UCI→SAN conversion, PGN generation
    - Game termination: checkmate, stalemate, 50-move, repetition, 80-move adjudication
    - Stores complete games in existing `matches` table (pgn, moves JSONB, fen)
    
    Part B - Game Viewer:
    - Interactive chessboard (CSS grid + Unicode pieces)
    - Move-by-move navigation (first/prev/play/next/last + keyboard arrows)
    - Move list with click-to-jump
    - Last move highlighting
    - Auto-play mode (800ms per move)
    - Uses chess.js for position replay from UCI moves
    
    Integration:
    - "لعب مباريات حقيقية" checkbox in bot testing panel
    - "♟ عرض" (View Game) button next to each completed pairing with match_id
    - Route: /tournaments/{id}/game/{matchId}
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    2ab774d7
Name
Last commit
Last update
Connections and docs Loading commit data...
api Loading commit data...
config Loading commit data...
core Loading commit data...
layouts Loading commit data...
migrations Loading commit data...
modules Loading commit data...
public Loading commit data...
storage Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
Dockerfile Loading commit data...
EL3AB_MANAGEMENT_SYSTEM.md Loading commit data...
EL3AB_PLAYER_APP_DATA.md Loading commit data...
captain-definition Loading commit data...
index.php Loading commit data...