• 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
..
css Loading commit data...
js Loading commit data...