PyChess is a chess game developed with Pygame, designed to offer an interactive and fluid experience. With stylized graphics and an intuitive interface, it allows for matches between players or against an artificial intelligence. Its focus is on accessibility and entertainment, ideal for those who enjoy chess in digital format. โ๏ธ๐ฎ
Traditional chess game with white pieces.
Checkmate detection when the black king has no legal moves to escape.
Automatic promotion of pawns to queen upon reaching the back rank.
Simple and functional graphical interface with Pygame.
Python 3.7 or higher.
Pygame library installed.
Clone this repository:
bash Copy Edit git clone https://github.com/K1lluaZk/pychess.git cd pychess Install the necessary dependencies: Reddit
bash Copy Edit pip install pygame ๐น๏ธ How to play Run the main game file:
bash Copy Edit python main.py Click on one of your white pieces to select it.
Click on a valid square to move the selected piece.
The game ends when the black king is captured or has no legal moves to escape check.
Only the white pieces can play.
The game detects checkmate when the black king has no legal moves to escape.
Pawns are automatically promoted to queens upon reaching the back rank.
Implementation of an artificial intelligence opponent.
Support for two-player games.
Tie detection due to stalemate or replay moves.
Improvements to the graphical interface and animations.
This project is licensed under the MIT License.