Gym Novel Gridworlds are environments for OpenAI Gym
Project description
Gym Novel Gridworlds
Gym Novel Gridworlds are environments for OpenAI Gym.
Installation
git clone https://github.com/gtatiya/gym-novel-gridworlds.git
cd gym-novel-gridworlds
pip install -e .
If you prefer, you can install directly from PyPI:
pip install gym-novel-gridworlds
Development Environment
Python 3.7.4
and following packages were used for development:
Python Packages
pip install gym==0.17.2
pip install keyboard==0.13.4
pip install matplotlib==3.1.2
pip install numpy==1.16.5
pip install stable_baselines=2.10.0
pip install tensorflow-gpu==1.14.0
Running
import gym
import gym_novel_gridworlds
env = gym.make('NovelGridworld-v0')
done = False
while not done:
env.render()
action = env.action_space.sample()
obs, reward, done, info = env.step(action)
env.close()
Enjoy a Trained Agent
If the trained agent exists, then you can see it in action using:
python enjoy.py -algo algo_name --env env_id
For example, enjoy PPO2 on NovelGridworld-v0 during 10 episodes:
python enjoy.py -env NovelGridworld-v0 -episodes 10
Play it yourself
Play the game using keyboard interface
cd tests
python keyboard_interface.py
Environments
NovelGridworld-v0
|
NovelGridworld-v1
|
NovelGridworld-v2
|
NovelGridworld-v3
|
NovelGridworld-v4
|
NovelGridworld-v5
|
NovelGridworld-v6
|
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gym_novel_gridworlds-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b98ff630aec8d1b060506fa22e7ad4b110359c4456ac328a918dc19bb84ccfe3 |
|
MD5 | 0a4ac8f5314304888581ef69b3add5af |
|
BLAKE2b-256 | dfb66440a45cee064b4ade8eeb4f76702a1e5d3c6d519ee6df294683bea7c0c5 |