take_it_easy
The game has two modes:
“play”: In the play mode, the entire game will be simulated including drawing tiles randomly. This is usefull to play with the computer or to train an Reinforcement Learning algorithm
“input”: In input mode, the user specifies what tile has been drawn, e.g., when playing a real-life game
Install
pip install take_it_easy
How to use
To play the game with random actions:
from take_it_easy.tiles import Tiles
from take_it_easy.board import Board
from take_it_easy.play import play_random_game
board = Board()
tiles = Tiles()
play_random_game(board, tiles, return_board = True)
[[-2 0 2 0 0 0]
[-2 1 1 0 0 0]
[-2 2 0 0 0 0]
[-1 -1 2 0 0 0]
[-1 0 1 0 0 0]
[-1 1 0 0 0 0]
[-1 2 -1 0 0 0]
[ 0 -2 2 0 0 0]
[ 0 -1 1 0 0 0]
[ 0 0 0 0 0 0]
[ 0 1 -1 0 0 0]
[ 0 2 -2 0 0 0]
[ 1 -2 1 9 8 7]
[ 1 -1 0 0 0 0]
[ 1 0 -1 0 0 0]
[ 1 1 -2 0 0 0]
[ 2 -2 0 0 0 0]
[ 2 -1 -1 0 0 0]
[ 2 0 -2 0 0 0]]
Score impact: 0, potential score impact: 24
[[-2 0 2 0 0 0]
[-2 1 1 5 4 2]
[-2 2 0 0 0 0]
[-1 -1 2 0 0 0]
[-1 0 1 0 0 0]
[-1 1 0 0 0 0]
[-1 2 -1 0 0 0]
[ 0 -2 2 0 0 0]
[ 0 -1 1 0 0 0]
[ 0 0 0 0 0 0]
[ 0 1 -1 0 0 0]
[ 0 2 -2 0 0 0]
[ 1 -2 1 9 8 7]
[ 1 -1 0 0 0 0]
[ 1 0 -1 0 0 0]
[ 1 1 -2 0 0 0]
[ 2 -2 0 0 0 0]
[ 2 -1 -1 0 0 0]
[ 2 0 -2 0 0 0]]
Score impact: 0, potential score impact: 2
[[-2 0 2 0 0 0]
[-2 1 1 5 4 2]
[-2 2 0 0 0 0]
[-1 -1 2 0 0 0]
[-1 0 1 0 0 0]
[-1 1 0 0 0 0]
[-1 2 -1 1 3 7]
[ 0 -2 2 0 0 0]
[ 0 -1 1 0 0 0]
[ 0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act: 0, potential score impact: -18
[[-2 0 2 9 8 2]
[-2 1 1 5 4 2]
[-2 2 0 5 8 6]
[-1 -1 2 9 4 6]
[-1 0 1 5 3 2]
[-1 1 0 9 3 6]
[-1 2 -1 1 3 7]
[ 0 -2 2 9 4 7]
[ 0 -1 1 5 3 7]
[ 0 0 0 1 3 6]
[ 0 1 -1 1 4 2]
[ 0 2 -2 1 8 6]
[ 1 -2 1 9 8 7]
[ 1 -1 0 1 8 2]
[ 1 0 -1 5 4 6]
[ 1 1 -2 9 8 6]
[ 2 -2 0 1 4 7]
[ 2 -1 -1 9 4 2]
[ 2 0 -2 9 3 2]]
Score impact: 0, potential score impact: 0
finished game with score: 0
Metadata
Release files for take-it-easy 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| take_it_easy-0.0.3.tar.gz | 7.8 kB | Without provenance | Details for take_it_easy-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| take_it_easy-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for take_it_easy-0.0.3-py3-none-any.whl |
Total release size: 14.8 kB
Release files / take_it_easy-0.0.3.tar.gz
| Download URL | take_it_easy-0.0.3.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c56e4376af55ace003e889a744b842a934b3f60f64a52c9659338935f3e1ed65
|
|
BLAKE2b-256 checksum How to use checksums |
8fcee8a4a2e6bd856e343d37b7b90bb3b1374a6dd3f836064af8e34cb66e46a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / take_it_easy-0.0.3-py3-none-any.whl
| Download URL | take_it_easy-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
529207bcd76f8fe5ed5c0242f9cb4479b0457d2086f8d4924e2f4d9cfd2f0e24
|
|
BLAKE2b-256 checksum How to use checksums |
bb90873d8f5d7a1fce168c12d0ada4ad06d913eba0c1a0a1111466222dd8e214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Security for take-it-easy 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.