Play Chess Against the Machine – Learn by Winning
I built an interactive chess game where you play against an AI that explains each move. The dashboard helps beginners understand why a move is good or bad.
Game Link (password: 20082010)
Features
Three AI difficulties - Easy with random moves, Medium that prefers captures, Hard with simple evaluation.
Interactive board using dropdowns to select from and to squares.
Move explanations for every move including captures, development, central control, and checks.
Dashboard showing your last move, the AI's last move, and game status.
New game button to restart anytime.
Run locally
pip install -r requirements.txt
streamlit run app.py
This project is perfect for beginners learning chess tactics. The AI explains its reasoning step by step so you learn while you play.
Feedback and stars on GitHub are welcome.
SOCIAL SHARE CARD GENERATOR