You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instructions to replicate this project on your local computer
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.
NOTE
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 to True and AI if it is set to False(Yes, this means we can enjoy an AI vs AI match by setting both variables to False)
Pawn Promotion is limited to Queen Only for now
Snippets of Working Project
Human vs AI Snippet
Castling
En Passant
About
A chess engine developed using pygame for GUI and using negamax algorithm for AI