Chessidle
Chessidle is a Python chess engine that can analyze standard and chess960 (Fischer random) chess positions.
Installation
Requires Python 3.9+
Download the latest release from pypi:
pip install chessidle
or download the most recent development version from source:
git clone https://github.com/alvinypeng/chessidle
cd chessidle
pip install .
Usage
Run UCI
chessidle
Run as a module if running as a script does not work:
python -m chessidle
Use with python-chess
It is possible to use Chessidle with python-chess. Here is a small example script to play against Chessidle in the terminal.
import chess
import chess.engine
board = chess.Board()
engine = chess.engine.SimpleEngine.popen_uci('chessidle')
while not board.is_game_over():
print(board, '\n')
s = input('Your move:') if board.turn else engine.play(board, chess.engine.Limit(time=3)).move.uci()
for push in (board.push_uci, board.push_san):
try:
push(s)
print(s, 'played \n')
break
except ValueError:
pass
else:
print('Invalid move \n')
print(board, '\n\n', 'Game is over')
engine.quit()
Supported UCI commands
Options
Hash Threads MultiPV UCI_Chess960 MoveOverhead
Go
wtime btime winc binc movestogo depth nodes movetime
Acknowledgements
Neural networks for this project are trained on data generated by Leela Chess Zero.
Metadata
Release files for chessidle 1.3.0
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 |
|---|---|---|---|---|
| chessidle-1.3.0.tar.gz | 15.4 MB | Without provenance | Details for chessidle-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chessidle-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for chessidle-1.3.0-py3-none-any.whl |
Total release size: 31.5 MB
Release files / chessidle-1.3.0.tar.gz
| Download URL | chessidle-1.3.0.tar.gz |
|---|---|
| Size | 15.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df3b22222529e83ec7dfa195db37eb1c14b0d45ff0ad8e8a118242781172b991
|
|
BLAKE2b-256 checksum How to use checksums |
c97cc6dcc2decd280e0e2fa31de497a64f16b7ab088f46b4ab0177c5d8297095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / chessidle-1.3.0-py3-none-any.whl
| Download URL | chessidle-1.3.0-py3-none-any.whl |
|---|---|
| Size | 16.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b66cfc4e4e6bd48783ad52bc9465dddacbd822f0da261209ccc63d030b49533
|
|
BLAKE2b-256 checksum How to use checksums |
a446bc3afae40810bb0414ce103ece0914aa72ff411c95d68cb1bc9b42207659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Security for chessidle 1.3.0
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.