Skip to main content

No project description provided

Project description

Gymgrid

This is a fork from https://github.com/wsgdrfz/gymgrid. The original implementation does no longer work in the latest versions of gym due to the change from the pyglet renderer to pygame.

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

Installation

pip install gymgrid2

Usage

import gym
import gymgrid
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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gymgrid2-1.2.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file gymgrid2-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: gymgrid2-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for gymgrid2-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 faf41227668a5037307b1c68865c7b669dcf5cfeac4d31a6246bcc3c13abe20b
MD5 00a915f6e7cc65f32ff220031822773d
BLAKE2b-256 7457ff83c256820bbaaa4c2ad246ea6ec452d1d158916b45fea026168bdf9ed4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page