How to Play
This is a full chess game with both single-player (vs AI) and two-player modes. To move a piece, click on it and then click on the square you want to move to. Legal moves will be highlighted. You can switch between human vs. AI and two-player modes using the button in the controls panel. The AI uses the minimax algorithm with alpha-beta pruning; change the difficulty via the dropdown.
- Pieces: ♔ (King), ♕ (Queen), ♖ (Rook), ♗ (Bishop), ♘ (Knight), ♙ (Pawn). Black pieces use the black versions of these symbols.
- Objective: Checkmate your opponent's king while protecting your own.
- Single-player: Start playing and the AI will automatically respond after your move.
- Two-player: Players alternate turns on the same device.
- Restart: Click "Restart" to reset the board.