Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rogue-gym, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size rogue_gym-0.0.2-cp36-cp36m-macosx_10_13_x86_64.whl (1.0 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rogue_gym-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (1.7 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rogue_gym-0.0.2-cp36-cp36m-win_amd64.whl (874.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size rogue_gym-0.0.2-cp37-cp37m-macosx_10_13_x86_64.whl (1.0 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rogue_gym-0.0.2-cp37-cp37m-manylinux1_x86_64.whl (3.4 MB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size rogue_gym-0.0.2-cp37-cp37m-win_amd64.whl (874.7 kB) File type Wheel Python version cp37 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page