This project is a Python implementation of the classic chess game, using the pygame
library for graphics and python-chess
for the game logic.
In this game, you can play against the computer or another player. The game features a standard chessboard with the ability to move pieces, and it includes checks for checkmate and stalemate.
To install the necessary dependencies, follow these steps:
-
Clone the repository:
git clone https://github.com/millkyx/chess_game.git cd chess_game
-
To install the necessary dependencies, use the following pip command:
pip install pygame chess
To start the game, run the following command:
python chess_game.py
- Python 3.x
- Pygame
- python-chess
- You will play as the white pieces, and the computer plays as the black pieces.
- Click on a piece and then on the square where you want to move it.
- The game continues until one player wins or a draw is reached.
This project is still a work in progress, as I am a beginner in programming. Some parts of the code may not be fully optimized or completed.