A full chess game playable in your browser against a computer AI. You play as White, the computer plays as Black. All standard chess rules are implemented: pawn promotion, castling, en passant, check and checkmate detection.
How to Play
Click one of your white pieces to select it — valid moves are highlighted.
Click a highlighted square to move there.
The CPU automatically plays its response.
The game ends when a king is in checkmate or stalemate occurs.
Controls
Click a piece — Select it and see legal moves
Click a highlighted square — Move the piece there
New Game button — Start a fresh game
Frequently Asked Questions
The AI uses a minimax search with a simple material and position evaluation. It's a good beginner/casual opponent — strong enough to challenge new players but beatable by intermediate players.
Yes — both castling (kingside and queenside) and en passant captures are fully implemented.
Pawns automatically promote to a Queen when they reach the back rank.