Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Mario Information

jcwleo opened this issue · comments

Is your feature request related to a problem? Please describe.

I want to know information that is mario status.
e.g. small mario, big mario, fire mario

Describe the solution you'd like

I think that status add to info.

Describe alternatives you've considered

Nope

Additional context

Nope

Good call. Implemented in version 4.1.0. See the below table for the new info dictionary descriptions

Key Type Description
coins int The number of collected coins
flag_get bool True if Mario reached a flag or ax
life int The current life (i.e., {3, 2, 1})
score int The cumulative in-game score
stage int The current stage (i.e., {1, ..., 4})
status str Mario's status {'small', 'tall', 'fireball'}
time int The time left on the clock
world int The current world (i.e., {1, ..., 8})
x_pos int Mario's x position in the stage