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)
Score impact: 0, potential score impact: 19
Score impact: 0, potential score impact: 15
Score impact: 0, potential score impact: 10
Score impact: 0, potential score impact: -1
Score impact: 0, potential score impact: 11
Score impact: 0, potential score impact: 4
Score impact: 0, potential score impact: 13
Score impact: 0, potential score impact: -12
Score impact: 0, potential score impact: 7
Score impact: 0, potential score impact: 1
Score impact: 0, potential score impact: 6
Score impact: 0, potential score impact: -2
Score impact: 0, potential score impact: -14
Score impact: 0, potential score impact: -6
Score impact: 0, potential score impact: -15
Score impact: 0, potential score impact: -12
Score impact: 0, potential score impact: -24
Score impact: 0, potential score impact: 0
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
take_it_easy-0.0.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for take_it_easy-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd46a51d82df9e04ab43b673ef0d2b70fe6a7111066e466415c3d21114496bec |
|
MD5 | 2e1c5cecfb91df13a4feb7a405c20a33 |
|
BLAKE2b-256 | 1c87403c673b3e56be73dd5a0e5c9dc495af7e76119068183cf4c7b679377420 |