Giter Site home page Giter Site logo

Comments (4)

Kautenja avatar Kautenja commented on May 28, 2024

I'll need more information to understand why this is happening. Validate your version is 3.1.0 or later using the following:

import pkg_resources
print(pkg_resources.get_distribution("gym-super-mario-bros").version)

If you are running any version of gym-super-mario-bros below 3.1.0, info will not contain anything and you should upgrade using python -m pip install gym-super-mario-bros -U

If you are running version 3.1.0, 3.1.1, or 3.1.2, please run the following and provide the output:

import gym_super_mario_bros
env = gym_super_mario_bros.make('SuperMarioBros-v0')
_ = env.reset()
_, _, _, i = env.step(0)
print(i)

Using 3.1.2 on Windows 10 I get {'flag_get': False} as the output (which is expected).

from gym-super-mario-bros.

leaderj1001 avatar leaderj1001 commented on May 28, 2024

Answer thank you so much.
But, I want to get a distance information and time information.
Could I get that information?

from gym-super-mario-bros.

Kautenja avatar Kautenja commented on May 28, 2024

version 4.0.0 has been released to address your issue (among others). Please see the below table for the new table of values offered in the info dictionary:

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})
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

Does this resolve your issue?

from gym-super-mario-bros.

leaderj1001 avatar leaderj1001 commented on May 28, 2024

Wooooow!!! It was super greatest update for me!!
Thank you so much :) Now I can using super-mario deep learning easily.
I really appreciate 👍

from gym-super-mario-bros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.