Python-Chess is a simple chess engine and GUI built with Python. It allows users to play chess against another human or an AI, visualize the board, and explore chess moves. The project is designed for learning and experimenting with chess programming concepts.
- Play chess with a graphical interface
- Human vs Human and Human vs AI modes
- Basic chess engine logic
- Move validation and legal move generation
- Piece images for a realistic board display
ChessEngine.py: Core chess logic, board representation, and move validationChessMain.py: Main entry point and GUI logicSmartMoveFinder.py: AI move selection logicimages/: Chess piece images (PNG format)__init__.py: Package initialization
- Python 3.x
pygame(for GUI)
- Clone the repository:
git clone https://github.com/SpaciousFish/Python-Chess.git cd Python-Chess - Install dependencies:
pip install pygame
Run the main script to start the game:
python ChessMain.py- Piece images from Wikimedia Commons
This project is licensed under the MIT License.