gym-super-mario-bros  by Kautenja

OpenAI Gym environment for Super Mario Bros. on NES

Created 7 years ago
794 stars

Top 44.3% on SourcePulse

GitHubView on GitHub
Project Summary

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

Highlighted Details

  • Supports 32 stages for Super Mario Bros. and Super Mario Bros. 2 (Lost Levels).
  • Includes environments for individual stages and random stage selection.
  • Provides various ROM modes (standard, downsample, pixel, rectangle) affecting visual fidelity and potentially performance.
  • The info dictionary returned by step includes detailed game state like coins, lives, score, and Mario's position.

Maintenance & Community

  • Primarily maintained by Christian Kauten.
  • No explicit community links (Discord/Slack) are provided in the README.

Licensing & Compatibility

  • The repository does not explicitly state a license in the README. This requires further investigation for commercial use or closed-source linking.

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.

Health Check
Last Commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
8 stars in the last 30 days

Explore Similar Projects

Starred by Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), Evan Hubinger Evan Hubinger(Head of Alignment Stress-Testing at Anthropic), and
3 more.

retro by openai

0.1%
4k
RL environment for classic video games
Created 7 years ago
Updated 1 year ago
Feedback? Help us improve.