The "Chess Game Using Python" project is a console-based chess game developed in Python. It provides a user-friendly interface for playing chess against another player or a computer opponent. The game includes features such as player vs. player, player vs. AI, customizable timers, and a clear display of game results.
- Player vs. Player: Enjoy a classic game of chess with a friend or family member locally on the same device.
- Player vs. AI: Challenge yourself against an AI opponent using the Mini-Max algorithm for strategic gameplay.
- Customizable Timers: Add an extra layer of strategy with customizable timers for each player's turn.
- User-Friendly Interface: The graphical user interface (GUI) provides an intuitive and visually appealing experience.
- Offline Gameplay: Play the game without the need for an internet connection.
- Learning Opportunity: Use the game as a tool for learning and improving chess skills.
Before running the Chess Game, make sure you have the following installed:
- Python (version 3)
- Git
- Tkinter (usually included with Python installations)
- Pygame (install using
pip install pygame)
-
Clone the repository:
git clone https://github.com/dee-raj/Chess7Dee
-
Navigate to the project directory:
cd Chess7Dee -
Run the main Python file to start the game:
python HomeScreen.py
- Choose the game mode (Player vs. Player, Player vs. AI) from the main menu.
- Make your moves by selecting the piece and the destination square.
- Enjoy the game!
The project has the following structure:
Chess7Dee
│
└-> __pycache__
-> ChessAI.cpython-311.pyc
-> ChessEngine.cpython-311.pyc
│
│-> app-logo.ico
├-> images
│ -> bB.png
│ -> bK.png
│ -> bN.png
│ -> bp.png
│ -> bQ.png
│ -> bR.png
│ -> wB.png
│ -> wK.png
│ -> wN.png
│ -> wp.png
│ -> wQ.png
│ -> wR.png
│
│-> ChessAI.py
│-> ChessEngine.py
│-> HomeScreen.py
│-> .gitignore
- .gitignore: Specifies files and directories to be ignored by Git.
- app-logo.ico: Icon file for the application.
- ChessAI.py: Code for the AI opponent.
- ChessEngine.py: Main logic of the chess game.
- HomeScreen.py: Display the home screen of the game.
- main.py: Main Python file to run the game.
- images: Directory containing image files used in the game.
- pycache: Directory containing Python cache files.
If you'd like to contribute to the project, please follow the contributing guidelines.
This project is licensed under the MIT License.