Skip to main content

No project description provided

Project description

Gymgrid

The gridworld environment contains simple environments in RL book and compatible with OpenAI-gym.

Installation

pip install gymgird

Usage

import gym
import gymgrid
env = env = gym.make('cliff-v0')
for i_episode in range(20):
    observation = env.reset()
    for t in range(100):
        env.render()
        print(observation)
        action = env.action_space.sample()
        observation, reward, done, info = env.step(action)
        if done:
            print("Episode finished after {} timesteps".format(t+1))
            break
env.close()
print("env closed")

Environments

  • Sample1
  • Sample2
  • Cliff: Example 6.5: Cliff Walking
  • WindyGridWorld: Exercise 6.9 Windy Gridworld with King's Moves

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

gymgrid-1.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

gymgrid-1.1.0-py3-none-any.whl (6.8 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