Skip to content

A chess engine developed using pygame for GUI and using negamax algorithm for AI

License

Notifications You must be signed in to change notification settings

bishopmate/bishopKara-chess-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A chess engine developed using pygame for GUI and using negamax algorithm for AI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages