ascacou-0.3.1
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ascacou-0.3.1 |
| نام | ascacou |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ascacou/ |
| مجوز | - |
# Ascacou
A subset of the rust ascacou game engine available for Python usage.
## Usage
```python
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
```bash
$ python3 -m venv env
$ source env/bin/activate
$ # Hack some files
$ maturin develop
$ python3
> import ascacou
> # Test stuff
$ deactivate
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ascacou-0.3.1:
pip install ascacou-0.3.1.whl
نصب پکیج tar.gz ascacou-0.3.1:
pip install ascacou-0.3.1.tar.gz