This is a two-player chess game implemented using Python's pygame
library. The game follows standard chess rules and allows two players to take turns moving their pieces on a chessboard. The interface is designed with basic chess piece images, and moves are validated to ensure the correct behavior for each piece.
- Two-player mode: One player plays as white and the other as black, alternating turns.
- Graphical Interface: A clean, minimalistic chessboard design with easy-to-follow visuals for valid moves, captured pieces, and current game status.
- Piece Movement: Each piece follows its standard movement rules (pawns, rooks, knights, bishops, queens, and kings).
- Move Validation: The game checks for valid moves for each piece, ensuring no illegal moves are made.
- Turn-based System: The game alternates between white and black, prompting players to select and move their pieces.
- Captured Pieces Display: Captured pieces are displayed on the side of the board.
- Clone the repository:
git clone https://github.com/PerseusKyogre09/Chess.git
- Install the required dependencies.
pip install pygame
- Run the game
python main.py
- Mouse Click: Select and move pieces.
- Forfeit Button: A button is provided to forfeit the game.
- The game starts with the white player's turn. The game status will indicate whether you need to select a piece or a destination for the move.
- Once a piece is selected, its valid moves will be highlighted.
- After white completes their move, it's black's turn to move.
- Captured pieces are displayed on the right side of the board.
- The game continues until a checkmate is achieved, or a player forfeits the game.
- Python 3.6+
- pygame library
- Add functionality for detecting checkmate.
- Implement a time control for each player.
- Add an AI opponent to play against the computer.
- Improve piece movement animations.