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.2.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for take_it_easy-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97cf12db3c8d2ee268e057ba2adcac89c1a800af8680e966a079a1b9f63accf |
|
MD5 | b4195559c3f9b0eea5fd17147e29afd5 |
|
BLAKE2b-256 | 681df6ba435146caba49e17ebce8fd416785d29de3256cf851cfc0aa557065d5 |