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
Close
Hashes for rogue_gym-0.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e786ca664b1fdaa254d3faf1a527023c7e1db56d8267a25ad78b892aa6483f59 |
|
MD5 | b47fff42eae8bbfb007f8caadf18afeb |
|
BLAKE2b-256 | 9eefa376aeb8a4f6e03e89a2eaece41dfaaab80b938cf498bdb89413da5d4778 |
Close
Hashes for rogue_gym-0.0.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cebad754e9bba55ac1ca4b24c84ace5afa81dafc562ab8c04748227e35695725 |
|
MD5 | defa90a6f90d442bec1a608cc45081de |
|
BLAKE2b-256 | 04afeb7c603a92d1b09f266e7403217508db6f7852a19fe0d4a04a7176badec7 |
Close
Hashes for rogue_gym-0.0.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8069411c11402f5a7e46c38a183047be097d7d6450743726b16b35fcd36a3632 |
|
MD5 | 1587c514eb5806a277d48cf77fba8190 |
|
BLAKE2b-256 | a4ac4ffe23a2f58952ddd6ce8a575dd5478ab27a3c25e80b6e8cd2c96bb11674 |
Close
Hashes for rogue_gym-0.0.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830fefb8b9e089e8fda8783f8863ac0d7f17dced11bb556702b929445c81ab1d |
|
MD5 | 9e2ec9154b7f28b58c5ede26e79a86fa |
|
BLAKE2b-256 | 48d4254b0c0daad288d8a668812c49e4a58f2ad88afc46b03d18c2a598e40f5e |
Close
Hashes for rogue_gym-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 206d66d22b66bd143250d05adf5628a252904f797d8820f99257382a6e095d55 |
|
MD5 | 8eb346c602d0edc6459ce2e4e885a654 |
|
BLAKE2b-256 | 19df319b5cfb6ba1e292c43f83ce8e06ea7f46237d25585356dc82674190eaad |
Close
Hashes for rogue_gym-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c37f9685cb43e57ca6d6f9da6e23248bf1b721157c495898a9b1ed81d585b01 |
|
MD5 | b29fb1581cf1a6903d3f793f137d4521 |
|
BLAKE2b-256 | 9ea2bd5bbc429375bc38262669adb98076fe576ad2aa6c4892f7e8340f25ef45 |