OpenAI gym environment for rogue-gym
Project description
rogue-gym python API
Python interface of Rogue-Gym compatible with Open AI Gym environments.
API documents
COMING SOON
Example
>>> from rogue_gym.envs import RogueEnv
>>> CONFIG = {
... 'width': 32, 'height': 16,
... 'dungeon': {
... 'style': 'rogue',
... 'room_num_x': 2, 'room_num_y': 2
... }
... }
>>> env = RogueEnv(max_steps=100, config_dict=CONFIG)
>>> rewards = 0
>>> state = env.reset()
>>> for i in range(10):
... # move right
... state, reward, done, _ = env.step('l')
... rewards += reward
...
>>> env
---
.@|
..|
Level: 1 Gold: 0 Hp: 12(12) Str: 16(16) Arm: 0 Exp: 1/ 0
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
File details
Details for the file rogue_gym-0.0.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: rogue_gym-0.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 874.7 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e786ca664b1fdaa254d3faf1a527023c7e1db56d8267a25ad78b892aa6483f59 |
|
MD5 | b47fff42eae8bbfb007f8caadf18afeb |
|
BLAKE2b-256 | 9eefa376aeb8a4f6e03e89a2eaece41dfaaab80b938cf498bdb89413da5d4778 |
File details
Details for the file rogue_gym-0.0.2-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: rogue_gym-0.0.2-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cebad754e9bba55ac1ca4b24c84ace5afa81dafc562ab8c04748227e35695725 |
|
MD5 | defa90a6f90d442bec1a608cc45081de |
|
BLAKE2b-256 | 04afeb7c603a92d1b09f266e7403217508db6f7852a19fe0d4a04a7176badec7 |
File details
Details for the file rogue_gym-0.0.2-cp37-cp37m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: rogue_gym-0.0.2-cp37-cp37m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8069411c11402f5a7e46c38a183047be097d7d6450743726b16b35fcd36a3632 |
|
MD5 | 1587c514eb5806a277d48cf77fba8190 |
|
BLAKE2b-256 | a4ac4ffe23a2f58952ddd6ce8a575dd5478ab27a3c25e80b6e8cd2c96bb11674 |
File details
Details for the file rogue_gym-0.0.2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: rogue_gym-0.0.2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 874.9 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830fefb8b9e089e8fda8783f8863ac0d7f17dced11bb556702b929445c81ab1d |
|
MD5 | 9e2ec9154b7f28b58c5ede26e79a86fa |
|
BLAKE2b-256 | 48d4254b0c0daad288d8a668812c49e4a58f2ad88afc46b03d18c2a598e40f5e |
File details
Details for the file rogue_gym-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: rogue_gym-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 206d66d22b66bd143250d05adf5628a252904f797d8820f99257382a6e095d55 |
|
MD5 | 8eb346c602d0edc6459ce2e4e885a654 |
|
BLAKE2b-256 | 19df319b5cfb6ba1e292c43f83ce8e06ea7f46237d25585356dc82674190eaad |
File details
Details for the file rogue_gym-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: rogue_gym-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.6m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c37f9685cb43e57ca6d6f9da6e23248bf1b721157c495898a9b1ed81d585b01 |
|
MD5 | b29fb1581cf1a6903d3f793f137d4521 |
|
BLAKE2b-256 | 9ea2bd5bbc429375bc38262669adb98076fe576ad2aa6c4892f7e8340f25ef45 |