Skip to main content

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


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)

Uploaded Source

Built Distribution

take_it_easy-0.0.1-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page