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.

Built Distributions

rogue_gym-0.0.2-cp37-cp37m-win_amd64.whl (874.7 kB view hashes)

Uploaded cp37

rogue_gym-0.0.2-cp36-cp36m-win_amd64.whl (874.9 kB view hashes)

Uploaded cp36

Supported by

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