rogue-gym 0.0.2

Creator: railscoderz

Last updated:

Add to Cart

Description:

roguegym 0.0.2

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.