Skip to content

Chess game designed for player vs. player matches using Python and Pygame.

Notifications You must be signed in to change notification settings

ankushhKapoor/Chess-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Python

This is a Python-based chess game designed for player vs. player matches.


Execute 'main.py' to start playing the game.
The code is primarily written using Pygame, without relying on any external chess modules.

Game Features

  • Multiple Themes: Press the 't' key to switch themes.

  • Valid Move Highlighting

  • Last Move Indicator

  • Pawn Promotion

  • Castling

  • En Passant

  • Game Restart: Press the 'r' key to restart game.

Green theme


Brown theme


Blue theme


Gray theme


Valid Moves


The valid moves are highlighted by **red-colored squares** on the board.

Last Move


The last moves are highlighted by **yellow-shaded squares** on the board.

Castling


The White King has completed castling.

Pawn Promotion


The Pawn on b8 is promoted to Queen.

En Passant


The Pawn on d5 is eligible to perform an En Passant move.

Dislaimer

This code was not originally developed by me. I learned it from a tutorial by the channel Coding Spot on Youtube and hold no copyright over this code or its related files.
PS - I did not just copy and paste the code. Instead, I understood it and then rewrote the entire code from scratch.

About

Chess game designed for player vs. player matches using Python and Pygame.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages