Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.92 KB

README.md

File metadata and controls

56 lines (46 loc) · 1.92 KB

BishopKara-Chess-Engine

Instructions to replicate this project on your local computer

  1. Install python3 in your computer if not installed, by following instructions on their official website Python 3 Website
  2. Install the python package installer which will be used to install pygame library by following instructions on this website pip installation
  3. Go into your OS terminal and type pip install pygame to install pygame library.
  4. Change your directory and go into the src folder of the project in your terminal
  5. 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

Image

Castling

Image

En Passant

Image