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.6-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gymgrid2-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e6be4543731790a83ff9d44b05177e0e94f4fc55811a8ae7735936cba22b967e
MD5 655665ec5329da00c301463f743143c5
BLAKE2b-256 f71c99615d086e40e771d112c00838f7e5d5f092b0aeb95f1df094ecb4b91049

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