Giter Site home page Giter Site logo

Comments (3)

Kautenja avatar Kautenja commented on June 8, 2024

flag implemented. environment wrapper excluded for unnecessary complexity. will reconsider if additional interest showed.

from gym-super-mario-bros.

sebastianheinz avatar sebastianheinz commented on June 8, 2024

Just tried to use the flag info['flag_get'] to prevent the env from switching to the next level. Seems that it only outputs False, even if the flagpole is reached.

from gym-super-mario-bros.

Kautenja avatar Kautenja commented on June 8, 2024

Just tested this and I see true when Mario touches the flag (or axe). Also, there are already environments that constrain mario to a level -- i.e., SuperMarioBros-1-1-v0. flag_get is used heavily in the logic of this project (which is stable now) so tbh I think whatever code you wrote has bugs or you're using an out of date version or something. If you have a simple script that can reproduce please post it. If you have a specific reason for re-implementing the level functionality, I'd be curious why too as new features are always great to add!

EDIT: if you post a script, please put this at the top and post output as well.

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

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.