Skip to content

christopher-hesse/example-gridworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Gridworld

A gym reinforcement learning environment using the gym3 API. This is a simple gridworld from Pieter Abbeel's CS287 to illustrate how to make a simple gym3 environment.

Installation

git clone https://github.com/christopher-hesse/example-gridworld.git
pip install -e example-gridworld

Quick Start

Play the gridworld using a keyboard:

python -m example_gridworld.interactive

Create the gym3 environment in code:

from example_gridworld import GridWorldEnv
env = GridWorldEnv(num=2)

Create a gym environment from the gym3 one:

from gym3 import ToGymEnv
from example_gridworld import GridWorldEnv
env = GridWorldEnv(num=1)
gym_env = ToGymEnv(env)

Resources

About

Example reinforcement learning gridworld

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published