Super Mario Bros. for OpenAI Gym
Project description
OpenAI Gym - Super Mario Bros
An OpenAI Gym environment for the original Super Mario Bros. game on the Nintendo Entertainment System (NES).
Installation
The preferred installation of gym-super-mario-bros
is from pip
:
pip install gym-super-mario-bros
NES Emulator
NESGym uses FCEUX to emulate NES games.
Make sure it's installed and in your $PATH
.
Unix
sudo apt-get install fceux
Mac
brew install fceux
Usage
import gym_super_mario_bros
env = gym_super_mario_bros.make('SuperMarioBros-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_super_mario_bros.make
is just an alias to gym.make
for
convenience.
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_super_mario_bros-0.5.0.tar.gz
(76.4 kB
view hashes)
Close
Hashes for gym_super_mario_bros-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2d4c4a6cb71f5697d214ffc921c754fa6e7d6cbd74a685aae4fb366dfcfb96 |
|
MD5 | a82bdabe7efd9ec0be8c69b0489a2034 |
|
BLAKE2b-256 | 6b8c4774d82e6b4a3c341258eeff55c6bba0513092e192cdf749e8f47c3a0ac1 |