Chess Bead Game
Description
Package for the both chess and Chinese poetry game. The rules of the game involve chess moves from games in pgn format. The board for the game is a Chinese poem of the Tang era, in which the line is equal to 7 characters (the last, 8th vertical is most often punctuation marks). When a piece makes a move, the characters on the board change places. The character on which the piece was is moved to the place of the character to which the move was made.
You can get the result texts and visualize it with the package.
You can use custom game in PGN format.
Inspired by Das Glasperlenspiel by Hermann Hesse.
Quick start
import chess_bead as cb
g = cb.Game() # use random chess game from the example PGN
# file included in the package
verses = g.start_game() # get all the permutations in the poem
v = cb.Viz(verses, g.author, g.title) # prepare visualization
v.gif() # make the GIF animation with the name
#'game.gif' in the working directory
del v # clean up the tmp dir
Installation
The tool could be installed with pip
pip3 install chess_bead
Examples and Docs
You can explore the brief examples that could give you a clue. For the deep sinking read the documentation.
External resources
The poems are taken from the collection selected from this repository.
The package uses cwTeXFangSong font licensed with SIL Open Font License (Version 1.1), see here .
Metadata
Release files for chess_bead 1.0.2
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 |
|---|---|---|---|---|
| chess_bead-1.0.2.tar.gz | 8.1 MB | Without provenance | Details for chess_bead-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chess_bead-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for chess_bead-1.0.2-py3-none-any.whl |
Total release size: 15.5 MB
Release files / chess_bead-1.0.2.tar.gz
| Download URL | chess_bead-1.0.2.tar.gz |
|---|---|
| Size | 8.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de6c00145c58a812ed8212cd7b394b75210b8019ee3f2c15be4e823f58db91d4
|
|
BLAKE2b-256 checksum How to use checksums |
6bcdd643a03215062824bc17b7d46acbb473fb6bf84ddb4abf4fe97a21a5340f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Release files / chess_bead-1.0.2-py3-none-any.whl
| Download URL | chess_bead-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b3e7bb52a7cbeb1b3aeca37bc8d67ccd5fe1700cc0a73c639c261560776ef43
|
|
BLAKE2b-256 checksum How to use checksums |
75b375572c17f2cd1eb539d3981da47abeba0b57c9e00d3854bbc65c7c28c280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.22.0
|
Security for chess_bead 1.0.2
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.