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)
s# 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.1.tar.gz
(11.7 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.1.tar.gz.
File metadata
- Download URL: ascacou-0.3.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
517386b62c211c61ed2a8f0fdf9b59dbf0760dc54f17213db22dc240df263aba
|
|
| MD5 |
e95a6618b8085ae44cd66cdaa4068705
|
|
| BLAKE2b-256 |
9e397d8e36d3ca5967ec6d81846a7a9fcfcc6f59e0de7586911d5a218aea6cfd
|
File details
Details for the file ascacou-0.3.1-cp39-cp39-macosx_10_7_x86_64.whl.
File metadata
- Download URL: ascacou-0.3.1-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 |
26e5491f053253598bd97eacb14a6a9498e9525c6470b4e18b3257f3f85dcf25
|
|
| MD5 |
8379b2e75121e61d20c84ce5ad6c74f6
|
|
| BLAKE2b-256 |
078fafd4d60afecdc7fbfb35908df5c06e2b51b9f556f0b53c6a0e166d493237
|