Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ Python Chess Game (PvP & Bot)

A lightweight, clean chess application built in Python using python-chess for core rules and move generation, paired with pygame for rendering.

Supports local 2-player pass-and-play and single-player vs. a Minimax evaluation bot.


Quick Start

Prerequisites

  • Python 3.10+

Installation

  1. Clone the repository:
    git clone [https://github.com/](https://github.com/estherg12/ChessGameBot.git
    cd ChessGameBot
    
  2. Create and activate a virtual enviromen
  • Windows:
py -m venv .venv
.venv\Scripts\activate
  • Linux / macOS:
python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies: pip install -r requirements.txt
  2. Run the game: python main.py

Controls

Key/Action Description
1 Switch to PvP Pass & Play mode
2 Switch to Vs. Bot mode (Bot plays Black)
R Reset the board
Left Click Select a piece / Target square to move

Roadmap & Up next

We have open issues tracking immediate enhancements:

  • Legal move indicator dots on selection
  • Sound effects for moves, captures, checks, and game over
  • High-resolution realistic piece sets (with toggles)
  • Beginner Mode: hover trajectory arrows/target highlights
  • Realistic simulated think delay for bot turns
  • UCI / Stockfish engine support with variable difficulty levels

Want to tackle one of these? Check out our Issues tab and read CONTRIBUTING.md to get started!


Contributing

Contributions are what make the open-source community an incredible place to learn, inspire, and create. Any contributions you make are greatly appreciated. Please see CONTRIBUTING.md for details on code style, issue assignment, and pull request workflows.


License

Distributed under the MIT License.

About

Python chess project with Player vs Player (local) and Player vs Bot modes

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages