takpy
Python wrapper for fast-tak.
Create a new game using takpy.new_game(size, half_komi).
from takpy import new_game, GameResult
game = new_game(6, 4)
while game.result() == GameResult.Ongoing:
moves = game.possible_moves()
# pick move
game.play(move)
game.possible_moves()gets a list of available moves in the current position.game.play(move)is used to play a move in the game.game.result()calculates the result of the game.
There are getters for game.board, game.to_move, game.white_reserves, game.black_reserves, game.ply, and game.reversible_plies.
You can find out more about how to use the library as part of my Takbot Tutorial.
Metadata
Release files for takpy 0.10.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 | |
|---|---|---|---|---|
| takpy-0.10.0.tar.gz | 9.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| takpy-0.10.0-cp312-none-win_amd64.whl | CPython 3.12 | none | Windows x86-64 | Details |
Total release size: 273.5 kB
Release files / takpy-0.10.0.tar.gz
| Download URL | takpy-0.10.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91cb515ffad4193a4947e3285f5ddc1285add2f2df5ffd1c1d4507f6a1039b11
|
|
BLAKE2b-256 checksum How to use checksums |
eb769175492d331ec28d3e43a0bd2c30b709606883275bf1896efe1116db1e6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Release files / takpy-0.10.0-cp312-none-win_amd64.whl
| Download URL | takpy-0.10.0-cp312-none-win_amd64.whl |
|---|---|
| Size | 264.5 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ae5e839ddc9c6916b5ff385991fccb4c3c9295bc16b46b0632d1ea5b374f71c7
|
|
BLAKE2b-256 checksum How to use checksums |
05dd88351f22c50d6565b0cb651ba3e3034d48b4795b45318b0e8911d31ae6e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.4.0
|
Security for takpy 0.10.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.