A modern Chess Game built in Python (Tkinter) with a beautiful GUI, AI opponent using Minimax + Alpha-Beta pruning, move history, timers, board flipping, sounds, and more!
🎯 Perfect for learning python game algorithms, Python GUI development, and game programming.
✔️ Play vs AI (Minimax + Alpha-Beta Pruning)
✔️ Play vs Human (same computer)
✔️ Timers (10 minutes each) ⏱️
✔️ Move history (scrollable log)
✔️ Sounds for moves, captures, check, and game over 🎵
✔️ Pawn promotion (Queen, Rook, Bishop, Knight)
✔️ Flip Board option 🔄
✔️ Game restart & quit options
✔️ Beautiful Tkinter GUI with chess piece images
✔️ AI "thinking" delay for realism
- Clone the repository:
git clone https://github.com/Aqibahmed12/chess-game-python.git cd chess-game-python - Install required dependencies:
pip install -r requirements.txt
- Run the game:
python chess_game.py
- Click pieces to select and move
- Flip Board → rotates the board
- Restart → start a new game
- Quit → return to main menu
- Python 3.8+
- Tkinter (comes pre-installed with Python)
- python-chess
- pygame
- Pillow (PIL)
- Install them all with:
pip install -r requirements.txt
🎓 Student of BS Artificial Intelligence, Aror University, Sukkur, Pakistan
If you like this project, don’t forget to star ⭐ the repo and share it!

