Discover and explore top open-source AI tools and projects—updated daily.
KautenjaOpenAI Gym environment for Super Mario Bros. on NES
Top 43.8% on SourcePulse
This repository provides OpenAI Gym environments for Super Mario Bros. and Super Mario Bros. 2 (Lost Levels) on the NES, targeting reinforcement learning researchers and developers. It enables agents to interact with the classic games through a standardized interface, facilitating the development and benchmarking of AI agents.
How It Works
The environments leverage the nes-py emulator to run the games. They offer a flexible action space, defaulting to the full 256-action NES controller input, but can be constrained to predefined action sets like SIMPLE_MOVEMENT or COMPLEX_MOVEMENT for easier agent control. The reward function is designed to encourage forward progress and survival, combining distance moved, time remaining, and a penalty for dying.
Quick Start & Requirements
pip install gym-super-mario-brosHighlighted Details
info dictionary returned by step includes detailed game state like coins, lives, score, and Mario's position.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README does not specify a license, which is a significant caveat for adoption. Random stage selection is currently only available for the original Super Mario Bros., not Lost Levels.
2 years ago
Inactive
openai