No project description provided
Project description
Ascacou
A subset of the rust ascacou game engine available for Python usage.
Usage
from ascacou import Board
from random import sample
board = Board("5/5/5/5/5 01234567") # Empty board with first white tiles.
while not board.is_terminal():
moves = board.possible_moves()
board = board.next(sample(moves, 1)[0])
print(board)
# Score is the difference between tiles made by the current player
# and tiles made by its opponent.
print(board.score())
Development
$ python3 -m venv env
$ source env/bin/activate
$ # Hack some files
$ maturin develop
$ python3
> import ascacou
> # Test stuff
$ deactivate
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ascacou-0.3.0.tar.gz
(11.5 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
File details
Details for the file ascacou-0.3.0.tar.gz.
File metadata
- Download URL: ascacou-0.3.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5084ecb0759bd3ad512fc7e6249693a9d7a7506ec90a9898c0c10da843ebda93
|
|
| MD5 |
4860d5f2c7e120325c258e7f0e017040
|
|
| BLAKE2b-256 |
0e2a652be0896d1b43aea654d715860d3a754da6061498eb550ee2160be172b0
|
File details
Details for the file ascacou-0.3.0-cp39-cp39-macosx_10_7_x86_64.whl.
File metadata
- Download URL: ascacou-0.3.0-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 188.2 kB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e19ee32048b442b5f60242e0676887e7bc05f68eea7051c3d9031641456b6db
|
|
| MD5 |
600f13367d0631f83f98d23b6577bcd5
|
|
| BLAKE2b-256 |
0f2c23e99f43246551aa43dfdbdce8e2bf26ffc51540e770a08ff03f58dd6c7a
|