No project description provided
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
takpy-0.1.0.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
takpy-0.1.0-cp310-none-win_amd64.whl
(186.7 kB
view details)
File details
Details for the file takpy-0.1.0.tar.gz.
File metadata
- Download URL: takpy-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67d7a853b4d8d7ea1871102e568b58fb39f7b164ff5dd261c3f41dc6faa2fe21
|
|
| MD5 |
63a9be0b9b0bbfd8bee770f0ed250703
|
|
| BLAKE2b-256 |
87e88ccbb9b1f856cf811b076826285969a7be5ed0515674c1fb695a9ee85789
|
File details
Details for the file takpy-0.1.0-cp310-none-win_amd64.whl.
File metadata
- Download URL: takpy-0.1.0-cp310-none-win_amd64.whl
- Upload date:
- Size: 186.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10812482a2e7ddbe574380458f1dd06b60867496d1760c15c1e88f5ae28a3c84
|
|
| MD5 |
06b9bf8ca380ebc1ca00506511151018
|
|
| BLAKE2b-256 |
4874dd6c26a8a4b85ca292647caf274c611577d76522a856dc5366e6282bd46a
|