Tetris for OpenAI Gym
Project description
gym-etris
An OpenAI Gym environment for Tetris. This environemnt derives from the Tetromino clone developed by Al Sweigart found here.
Installation
The preferred installation of gym-tetris
is from pip
:
pip install gym-tetris
Usage
import gym_tetris
env = gym_tetris.make('Tetris-v0')
done = True
for step in range(5000):
if done:
state = env.reset()
state, reward, done, info = env.step(env.action_space.sample())
env.close()
NOTE: gym_tetris.make
is just an alias to gym.make
for
convenience.
Citation
Please cite gym-tetris
if you use it in your research.
@misc{gym-tetris,
author = {Albert Sweigart and Christian Kauten},
title = {{Tetris} for {OpenAI Gym}},
year = {2018},
publisher = {GitHub},
howpublished = {\url{https://github.com/Kautenja/gym-tetris}},
}
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
gym_tetris-0.4.0.tar.gz
(15.7 kB
view hashes)