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])
board.print()
# 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.2.0.tar.gz
(11.4 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.2.0.tar.gz.
File metadata
- Download URL: ascacou-0.2.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50b24b44945793b7373fe2bfbba690ed7ff72b6ce4570b91e053030f66b8467c
|
|
| MD5 |
1bde3dcd5ec63e4229253193c64b3991
|
|
| BLAKE2b-256 |
e351eebed967738f18a070956a860803dedfbd626bc03336a4ab29e2cdc83797
|
File details
Details for the file ascacou-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl.
File metadata
- Download URL: ascacou-0.2.0-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 187.0 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 |
ef06db374d512fd91aa87b555636385ea476195d32e3c5abf7f95612412e6cef
|
|
| MD5 |
4dad43e9793730cf3ead48d856b75938
|
|
| BLAKE2b-256 |
248d8e228f6c41dc086662849d7481a476aa9f0e613bb0b42a503a8455476e0a
|