Skip to content

sahilrw/chess-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 

Repository files navigation

Chess Game

This is a simple chess game implemented in Python using the Pygame library. It allows players to play chess against each other on the same device.

How to Play

  1. Start the Game: Run the main.py file to start the game.
  2. Game Interface: The game window will display the chessboard and pieces.
  3. Game Controls:
    • Click on a piece to select it.
    • Click on a highlighted square to move the selected piece to that square.
    • Press T to change themes.
    • Press R to restart the game.

Features

  • Drag-and-Drop: Players can move pieces by dragging and dropping them to the desired square.
  • Legal Move Highlighting: Legal moves for selected pieces are highlighted on the board.
  • Sound Effects: Sound effects are played for piece movements and captures.
  • Theme Change: Players can change the theme of the game board.
  1. Once you're inside the src directory, run the Python script main.py using the following command:

python main.py

Requirements

  • Python 3.x
  • Pygame library

How to Install

  1. Clone the repository to your local machine.
  2. Install the required dependencies using pip install -r requirements.txt.
  3. Run the game using python main.py.

Credits

This project was created by Sahil Wankhade. It is based on the Pygame library and follows the rules of traditional chess.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages