Skip to main content

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

Metadata

Release files for ascacou 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ascacou 0.3.1
File Size Uploaded
ascacou-0.3.1.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ascacou 0.3.1
File Interpreter ABI Platform
ascacou-0.3.1-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details

Total release size: 199.8 kB

Release files / ascacou-0.3.1.tar.gz

Download URL ascacou-0.3.1.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
517386b62c211c61ed2a8f0fdf9b59dbf0760dc54f17213db22dc240df263aba
BLAKE2b-256 checksum
How to use checksums
9e397d8e36d3ca5967ec6d81846a7a9fcfcc6f59e0de7586911d5a218aea6cfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.6

Release files / ascacou-0.3.1-cp39-cp39-macosx_10_7_x86_64.whl

Download URL ascacou-0.3.1-cp39-cp39-macosx_10_7_x86_64.whl
Size 188.2 kB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
26e5491f053253598bd97eacb14a6a9498e9525c6470b4e18b3257f3f85dcf25
BLAKE2b-256 checksum
How to use checksums
078fafd4d60afecdc7fbfb35908df5c06e2b51b9f556f0b53c6a0e166d493237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.12.6

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page