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 gymgrid2
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.5-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gymgrid2-1.2.5-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9a02115b6acc3328ceee3ee2ac393a99b7e4c3b1dfc7fb2bfa8f707e4c7f6312
MD5 0bf57bea3fe0c0beea96dc44b9707a19
BLAKE2b-256 372b00b82932a49b0b35b054cc381e4b4fcd4419392c62957e5aa912f3d1ed5e

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