- This integrates the Stockfish chess engine with python. It allows the engine to be used
by invoking an easy-to-use Engine class with synchronization handled automatically.
>>> from pystockfish import * >>> deep = Engine(depth=20) >>> deep.setposition(['e2e4']) >>> deep.bestmove() {'info': 'info depth 10 seldepth 13 score cp -40 nodes 33303 nps 951514 time 35 multipv 1 pv b8c6 g1f3 g8f6 b1c3 e7e5 f1b5 f8d6 e1g1 e8g8 d2d4 e5d4 f3d4 a7a6', 'ponder': 'g1f3', 'move': 'b8c6'} >>> deep.setposition(['e2e4','e7e5']) >>> deep.bestmove() {'info': 'info depth 10 seldepth 2 score cp 40 nodes 4230 nps 1057500 time 4 multipv 1 pv g1f3 g8f6 b1c3 b8c6 f1b5 f8d6 e1g1 e8g8 d2d4 e5d4 f3d4 a7a6', 'ponder': 'g8f6', 'move': 'g1f3'}The package also implements a Match class to play chess two engines against one another.
Metadata
Release files for pystockfish 1.0.1
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 |
|---|---|---|---|---|
| pystockfish-1.0.1.tar.gz | 3.8 kB | Without provenance | Details for pystockfish-1.0.1.tar.gz |
Release files / pystockfish-1.0.1.tar.gz
| Download URL | pystockfish-1.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8b68c19c2d2a2b1c9876f6f6f275dea0462355af47a1d97258fa439ea03b1d3
|
|
BLAKE2b-256 checksum How to use checksums |
946f42c1543605eb1ea8f5dbc2698a7e0055c78c7ea7acf174bb29d431f4cd41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pystockfish 1.0.1
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.