Basic implementation of gridworld game for reinforcement learning research.
install virtual environment for gridworld
cd gym-gridworld
conda env create -f environment.yml
source gridworld
pip install -e .
import gym
import gym_gridworld
env = gym.make('gridworld-v0')
_ = env.reset()
_ = env.step(env.action_space.sample())
In order to visualize the gridworld, you need to set env.verbose
to True
env.verbose = True
_ = env.reset()