-
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:Claude Opus 4.6 <noreply@anthropic.com>
2ab774d7
| Name |
Last commit
|
Last update |
|---|---|---|
| Connections and docs | ||
| api | ||
| config | ||
| core | ||
| layouts | ||
| migrations | ||
| modules | ||
| public | ||
| storage | ||
| .gitignore | ||
| .htaccess | ||
| Dockerfile | ||
| EL3AB_MANAGEMENT_SYSTEM.md | ||
| EL3AB_PLAYER_APP_DATA.md | ||
| captain-definition | ||
| index.php |