ch0 - Blindfold Chess CLI
A minimal terminal game for playing blindfold chess against built-in engines.
- Install it as a standalone CLI tool
- Play by entering SAN moves (
e4,Nf3,exd5,a8=Q) plus a handful of helpful commands (show,fen,pgn, …) - Includes bundled engines (Sunfish, Andoma) and a “bring your own UCI engine” mode
- Adds post-game analysis after the result is announced
Install
With uv (recommended)
uv tool install play-ch0
With pip
python -m pip install --upgrade play-ch0
Requires Python 3.11+.
Run
After installing, you can launch the game with either entrypoint:
ch0
# or
play-ch0
You’ll start in a lobby where you pick an engine + color, then start.
Quick start gameplay
-
Enter SAN moves:
e4,Nf3,exd5,a8=Q, … -
Or enter commands like:
show- show the board (useful if you “peek”)moves- list movesfen- print current FENpgn- print current PGN (also printed at game end)resign- resignhelp- show available commandsquit- exit
Commands can also be prefixed with : (e.g. :show).
The engine moves automatically on its turn.
Opening book (optional)
If you place a Polyglot opening book file named book.bin in the current working directory when you run ch0,
the game will use it for opening-book moves.
Engines
Available options:
random- plays random legal movesandoma- bundled enginesunfish- bundled engineuci- use any external UCI engine (e.g., Stockfish) by providing a command/path; played viapython-chess
Notes:
- Sunfish and Andoma are third-party projects vendored under
src/ch0/engines/. I don’t create or maintain them. - On Windows, ANSI colors work better if
coloramais installed (it’s auto-used when present).
Development (from source)
If you want to hack on the repo instead of installing from PyPI:
git clone https://github.com/menisadi/ch0
cd ch0
uv sync
uv run ch0
Licenses / third-party
- This project is licensed under GPLv3 (see
LICENSE). - Sunfish is distributed under the GNU General Public License; see
src/ch0/engines/sunfish/LICENSE.md. - Andoma is distributed under the MIT License; see
src/ch0/engines/andoma/LICENSE.
TODO
- Fix turn bookkeeping - remove
game.turnand rely onboard.turn - Update move numbering / PGN formatting using
board.turnbefore pushing moves - Sunfish: validate emitted UCI move is legal
- Make Polyglot book usage optional
- Show a subtle “(book)” indicator when a book move is used
- Add
undo(at least one ply) - Add
status/checkcommand that reports check-like info - Decide and implement draw policy: claimable vs automatic handling of draws
- Add optional PGN autosave to a file (date/engine/color in file-name)
- Add "illegal moves" count (printed at the end)
- Add Stockfish bundling or automatic UCI discovery
- Add post-game analysis
Metadata
Release files for play-ch0 1.3.6
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 |
|---|---|---|---|---|
| play_ch0-1.3.6.tar.gz | 100.2 kB | Without provenance | Details for play_ch0-1.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| play_ch0-1.3.6-py3-none-any.whl | Python 3 | none | any | Details for play_ch0-1.3.6-py3-none-any.whl |
Total release size: 199.9 kB
Release files / play_ch0-1.3.6.tar.gz
| Download URL | play_ch0-1.3.6.tar.gz |
|---|---|
| Size | 100.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bba72c0be1fb87898952076d4b676bc7fc4eabe38002fa51b4fcdd15437ea148
|
|
BLAKE2b-256 checksum How to use checksums |
905666ea752261ebd8a48933bb7c82646f4828b6f775a0e331ba1d0b768c8e40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / play_ch0-1.3.6-py3-none-any.whl
| Download URL | play_ch0-1.3.6-py3-none-any.whl |
|---|---|
| Size | 99.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
532d4f489c502b162e480f1a254e5fd038f14f56dc5338e040fcb061eea60c97
|
|
BLAKE2b-256 checksum How to use checksums |
4eed87832deefffd85cbf675ccede8b2bcc5ce0f7f1097c924f233bdd7fabdb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for play-ch0 1.3.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.