- ChessMain.py: Contains the code to handle user input and draw the game visuals
- ChessEngine.py : Contains the logic of the Chess game (Using Brute Force Algorithm for calculating valid moves)
- ChessEngineAd.py : Contains the logic of the Chess game (Using Optimised Algorithm for calculating valid moves)
- ChessBot.py : Contains the logic for the BOT to play smartly considering captures, defences and positional advantages to some extent.
###Library to be installed for this Chess engine to work :
- pyGame:
pip3 install pygame
python3 ChessMain.py adv
or python ChessMain.py adv
python3 ChessMain.py
or python ChessMain.py
To choose whether to play a 2 player game or vs Computer or just see Computer Playing against itself make the following changes in the Config File:
-
For Playing as White (Default) : Set PLAYER_ONE_HUMAN = True and PLAYER_TWO_HUMAN = False
-
For Playing as Black : Set PLAYER_TWO_HUMAN = True and PLAYER_ONE_HUMAN = False
-
For 2 Player Game : Set both PLAYER_ONE_HUMAN and PLAYER_TWO_HUMAN = True
-
For seeing Computer play from both sides : Set both PLAYER_ONE_HUMAN and PLAYER_TWO_HUMAN = False