Skip to main content

KingSnake

KingSnake is a Python implementation of chess for two human players. Because players are also objects, an AI implementation would also be possible.

A simple text-based chess game can be started with the script kingsnake. This script calls KingSnake.py in xterm with a large font. If you don’t want to use the xterm terminal, you can call KingSnake.py directly.

KingSnake checks each move for legality and only allows legal moves to occur. However, because the library is open, you of course also have the possibility to move pieces around manually without invoking moves, making it possible to set up historical chess games and revel in the past.

This software is released under the GNU General Public License, so feel free to use it any way you like. It would be nice to let me know if you do anything cool with it though.

The package has reached 2.0 status relatively early. This is because, due to popular demand, I had released 1.3 with some added capabilities on move rollback. The resultant code was comfortable to use, but the performance was bad. As I fixed the performance problem, I cut out some of the outward-facing API of Chessboard, so that code dependent on features in 1.3 would have been broken. The same functionality is now there, but the method names didn’t match logically any more and I didn’t want to support the deprecate calls in probably-nonexistent client code. So… Don’t be sad, just update the package and enjoy the same functionality in performance mode! ;)

Author: Daniel Lee

Metadata

Release files for KingSnake 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for KingSnake 2.0.0
File Size Uploaded Provenance Actions
KingSnake-2.0.0.tar.gz 9.4 kB Without provenance Details for KingSnake-2.0.0.tar.gz

Release files / KingSnake-2.0.0.tar.gz

Download URL KingSnake-2.0.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1d7782954e77ec76397f92b4d28161066bb2879f063b0ae099e2c2693be0da5c
BLAKE2b-256 checksum
How to use checksums
ba17511b466b28b665264082ce4357246e1359f6c3a744078fc24208a6158a85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for KingSnake 2.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page