An implementation of the popular board game Take It Easy! to be used for Reinforcement Learning
Project description
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]
[ 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 -1 -1 9 4 2]
[ 2 0 -2 9 3 2]]
Score impact: 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 take_it_easy-0.0.3.tar.gz.
File metadata
- Download URL: take_it_easy-0.0.3.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c56e4376af55ace003e889a744b842a934b3f60f64a52c9659338935f3e1ed65
|
|
| MD5 |
5a2f5a32c1456a28a071c70a26653bbb
|
|
| BLAKE2b-256 |
8fcee8a4a2e6bd856e343d37b7b90bb3b1374a6dd3f836064af8e34cb66e46a2
|
File details
Details for the file take_it_easy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: take_it_easy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
529207bcd76f8fe5ed5c0242f9cb4479b0457d2086f8d4924e2f4d9cfd2f0e24
|
|
| MD5 |
bbb95a317a009fcd027c02ab9e6d9da8
|
|
| BLAKE2b-256 |
bb90873d8f5d7a1fce168c12d0ada4ad06d913eba0c1a0a1111466222dd8e214
|