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
Release files for gymgrid 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gymgrid-1.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gymgrid-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / gymgrid-1.1.0.tar.gz
| Download URL | gymgrid-1.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c369f38f02a8f7e3777feaba68eafd5920583f503da9a113d318c2c23ee0ac4a
|
|
BLAKE2b-256 checksum How to use checksums |
19a64cfe6c88414440a866cec06bb20815751daa0304be4443e93d02ab1dbf1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9
|
Release files / gymgrid-1.1.0-py3-none-any.whl
| Download URL | gymgrid-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6330098e7ac7160130d8e7b6e7d42eee0e3d08e5f7a5cf3c6ba6152800f932b3
|
|
BLAKE2b-256 checksum How to use checksums |
8cbef295e768e1a91a5cc45a913ddf532395aa45158aeec6f3ca7288b7c12075
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9
|