Skip to content

Aqibahmed12/python-chess-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ Python Chess Game

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.


✨ Features

✔️ 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


📸 Screenshots

🏁 Start Menu

Start Menu

♟️ In-Game (with AI)

Gameplay


🛠️ Installation

  1. Clone the repository:
    git clone https://github.com/Aqibahmed12/chess-game-python.git
    cd chess-game-python
  2. Install required dependencies:
    pip install -r requirements.txt
  3. Run the game:
    python chess_game.py
    

🎮 Controls

  • Click pieces to select and move
  • Flip Board → rotates the board
  • Restart → start a new game
  • Quit → return to main menu

📦 Requirements

  • Python 3.8+
  • Tkinter (comes pre-installed with Python)
  • python-chess
  • pygame
  • Pillow (PIL)
  • Install them all with:
    pip install -r requirements.txt
    

👨‍💻 Author

Aqib Ahmed

🎓 Student of BS Artificial Intelligence, Aror University, Sukkur, Pakistan

⭐ Support

If you like this project, don’t forget to star ⭐ the repo and share it!

Releases

No releases published

Packages

No packages published

Languages