Python Chess GUI
A Python chess application with a graphical user interface built using pygame and python-chess library, featuring player vs Stockfish AI gameplay.
Features
- Player vs Stockfish AI gameplay
- Color selection (play as White or Black)
- Adjustable AI difficulty (Level 1-5)
- Move takeback (undo)
- Hint system and real-time evaluation bar (computed at chosen difficulty level)
- Visual highlights for legal moves, last move, and check
Installation
macOS
# Install Stockfish and Python 3.12
brew install stockfish python@3.12
# Install pipx and the game
brew install pipx
pipx ensurepath
source ~/.zprofile
pipx install python-chess-gui --python python3.12
# Run the game
chess-gui
Debian/Ubuntu
# Install Stockfish and Python 3.12
sudo apt install stockfish python3.12
# Install pipx and the game
sudo apt install pipx
pipx ensurepath
source ~/.bashrc
pipx install python-chess-gui --python python3.12
# Run the game
chess-gui
Controls
- Mouse click: Select piece / move piece / menu selection
- H: Get a hint (Stockfish's suggested move)
- Z: Undo last move
- N: New game (return to menu)
- Q / Escape: Quit
License
MIT License
Metadata
Release files for python-chess-gui 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_chess_gui-0.1.4.tar.gz | 133.7 kB | With provenance | Details for python_chess_gui-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_chess_gui-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for python_chess_gui-0.1.4-py3-none-any.whl |
Total release size: 159.4 kB
Release files / python_chess_gui-0.1.4.tar.gz
| Download URL | python_chess_gui-0.1.4.tar.gz |
|---|---|
| Size | 133.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ed4df47c6d0b0b481bf454a9cb13c90fff9f24906162fc2ffe909d071b539bc
|
|
BLAKE2b-256 checksum How to use checksums |
7f864e364a1b1cf0447c58a03013abef29a4f52aa150343030a84f8d882995c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 30, 2026.
Transparency logRelease files / python_chess_gui-0.1.4-py3-none-any.whl
| Download URL | python_chess_gui-0.1.4-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63896c249a5953a5a34c35eee951b2fa3bce1fada70d21c020e9a540757884b8
|
|
BLAKE2b-256 checksum How to use checksums |
f2fe63e0394f2f6de96b1add5cadbbd2f6b33a5c7d5979046fdbf0015c3fd09e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 30, 2026.
Transparency logSecurity for python-chess-gui 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for python_chess_gui-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.