- Install python3 in your computer if not installed, by following instructions on their official website Python 3 Website
- Install the python package installer which will be used to install pygame library by following instructions on this website pip installation
-
Go into your OS terminal and type
pip install pygame
to install pygame library. - Change your directory and go into the src folder of the project in your terminal
-
Type
python3 chessMain.py
in the terminal to start the project and play the game as you wish.
- The first player(playerOne variable in code) is considered here to be white and the second player(playerTwo variable in code) is considered to be black.
-
Whether a player is Human or AI is controlled by the line no. 49 and 50 for playerOne and playerTwo respectively in the chessMain.py file in the src directory
A player is Human if the boolean value of the variable said above is set toTrue
and AI if it is set toFalse
(Yes, this means we can enjoy an AI vs AI match by setting both variables toFalse
) - Pawn Promotion is limited to Queen Only for now