cd /Users/nazky/Documents/RPL/chess.ai
python3 test_requirements.py # Should show all ✅ PASSED./.venv/bin/python script.py- Click "📤 Upload Chess Screenshot"
- Select any image file (or skip for testing)
- Click "🔍 Scan & Analyze Position"
- Choose or enter a chess position (FEN)
- See instant Stockfish analysis!
| File | Purpose | Size |
|---|---|---|
script.py |
Main application | 17K |
README.md |
Full documentation | 11K |
test_requirements.py |
Test suite | 4.9K |
requirements.txt |
Dependencies | 73B |
setup.sh |
Setup script | 1.5K |
QUICKSTART.md |
Project overview | 7.1K |
1. Launch: ./.venv/bin/python script.py
2. Click upload (or skip)
3. Click "Scan & Analyze"
4. Use preset or paste FEN
5. See best moves instantly
./.venv/bin/python test_requirements.pywhich stockfish
stockfish --versionsource .venv/bin/activate
pip install -r requirements.txt --force-reinstall| Scenario | FEN |
|---|---|
| Start | rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 |
| Fool's Mate | rnbqkbnr/pppp1ppp/8/4p3/6PP/5P2/PPPPP2P/RNBQKBNR w KQkq - 0 3 |
| Scholar's Mate | rnbqkb1r/pppp1ppp/5n2/4p3/4P1B1/5N2/PPPP1PPP/RNBQK2R b KQkq - 4 4 |
| Simple Endgame | 8/8/8/3k4/3P4/3K4/8/8 w - - 5 50 |
brew install stockfish # macOS
# Then restart the appsource .venv/bin/activate
pip install -r requirements.txtpython3 -m tkinter # Test Tkinter
# If blank window appears, Tkinter works- Check FEN format has 6 parts separated by spaces
- Example:
position w KQkq - 0 1 - Try a preset first to ensure system works
Shows the strongest move according to Stockfish
| Score | Meaning |
|---|---|
| +2.5 | You have big advantage |
| +0.5 | Small advantage |
| ±0.0 | Equal position |
| -0.5 | Small disadvantage |
| -2.5 | Big disadvantage |
| Mate in 3 | Checkmate forced |
- 🟢 ATTACKING - You're winning
- 🟡 BALANCED - Equally matched
- 🟠 DEFENDING - You're losing
- 🔴 CRITICAL - Mate threat
✅ Upload chess board images
✅ Detect board region
✅ Convert to FEN notation
✅ Analyze with Stockfish
✅ Show best moves
✅ Detect tactics/checkmates
✅ Evaluate positions
✅ Modern GUI
✅ Works on macOS
- Learn Chess: chess.com, lichess.org
- FEN Notation: chessclub.com/help/FEN-notation
- Stockfish: stockfishchess.org
- Python-Chess: python-chess.readthedocs.io
- Python: 3.14.2 ✅
- Stockfish: /opt/homebrew/bin/stockfish ✅
- Dependencies: All installed ✅
- Tests: All passing ✅
- Ready: YES ✅
Everything is set up and working. Just run:
./.venv/bin/python script.pyEnjoy your Chess Scanner! ♟️✨