This Python program implements a chess engine that allows users to play chess against each other or watch AI vs AI matches. The program provides a graphical user interface using the Pygame library and includes the following features:
- AI vs Player: Challenge yourself by playing against a computer-controlled AI.
- AI vs AI: Watch two AI players compete against each other in chess matches.
- Game Outcome: Determine the outcome of the game, including checkmate, draw, or stalemate.
- Move Log: Display a move log showing the sequence of moves played during the game.
-
Install Python: Make sure you have Python 3.6 or newer installed on your system.
-
Clone Repository: Clone this repository to your local machine or download it as a ZIP file.
-
Install Dependencies: Install the required dependencies by running the following command:
pip install pygame
- Run the Program: Start the program by running the main.py file located in the main directory.
- Select Game Mode: Choose the desired game mode from the main menu:
- Player vs Player
- AI vs Player
- AI vs AI
- Gameplay: Follow the on-screen instructions to make moves and play the game.
- Undo and Reset: During the game, you can undo a move by pressing 'z' or reset the game by pressing 'r'.
- Threefold Repetition: The program checks for the threefold repetition condition and determines the outcome of the game accordingly.
- Move Log Display: The move log is displayed on the right side of the game screen, showing the sequence of moves played.
- AI Difficulty: The difficulty of the AI opponent can be adjusted to provide a more challenging game experience.
video_2024-02-14_15-52-46.mp4
Do not forget to give a start
Then fork this repo, make it BETTER and do not forget to give a STAR