/ student tools
Chess vs AI
Live
W: 0L: 0D: 0
87654321
♜
♞
♝
♛
♚
♝
♞
♜
♟
♟
♟
♟
♟
♟
♟
♟
♙
♙
♙
♙
♙
♙
♙
♙
♖
♘
♗
♕
♔
♗
♘
♖
abcdefgh
Captured by White
Captured by Black
Move History
Your turn (White)
Privacy First: Your files are processed securely. Whenever possible, processing happens in your browser and files are never stored on our servers.
Complete chess against an AI. All rules: legal move generation, castling (both sides), en passant, pawn promotion, check, checkmate, stalemate. Click a piece to see legal moves in green dots, click destination to move. AI: Easy (random), Medium (minimax depth 2, alpha-beta), Hard (minimax depth 3, positional bonuses). Captured pieces and algebraic move history displayed.
How to Use
- 1Select AI difficulty (Easy/Medium/Hard) from the dropdown before starting
- 2Click any of your white pieces to see its legal moves highlighted in green
- 3Click a highlighted square to move the piece there
- 4The AI (black) responds automatically after your move
- 5Check is highlighted in red - you must resolve it. Checkmate ends the game
Features
- Full legal move generation for all 6 piece types
- Castling (kingside + queenside) with hasMoved tracking
- En passant capture
- Pawn promotion (auto-queen)
- Check, checkmate, stalemate detection
- Red king highlight when in check, green dots for legal moves, yellow last-move tint
- 3 AI difficulty levels: Easy (random), Medium (minimax depth 2), Hard (minimax depth 3 + position bonuses)
- Alpha-beta pruning for AI performance
- Captured pieces panel with piece value totals
- Algebraic notation move history (scrollable)
- Win/draw/resign overlays
- Scores saved to localStorage
Frequently Asked Questions
Guest PlanUpgrade
/ related tools
Community Feedback
Like
00
Total Rating
No ratings yetReviews
No reviews yet. Be the first!
Rate & Review
Was this tool helpful?
Rate this tool:
Write a Review
0/500