Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

retro

> 编程语言
Open source

Retro Games in Gym

3.6K stars0 likes0 views
WebsiteGitHub

About

Retro Games in Gym

Status: Maintenance (expect bug fixes and minor updates)

Gym Retro

Gym Retro lets you turn classic video games into Gym environments for reinforcement learning and comes with integrations for ~1000 games. It uses various emulators that support the Libretro API, making it fairly easy to add new emulators.

Supported platforms:

  • Windows 7, 8, 10
  • macOS 10.13 (High Sierra), 10.14 (Mojave)
  • Linux (manylinux1)

CPU with SSSE3 or better

Supported Pythons:

  • 3.6
  • 3.7
  • 3.8

Each game integration has files listing memory locations for in-game variables, reward functions based on those variables, episode end conditions, savestates at the beginning of levels and a file containing hashes of ROMs that work with these files.

Please note that ROMs are not included and you must obtain them yourself. Most ROM hashes are sourced from their respective No-Intro SHA-1 sums.

Documentation

Documentation is available at https://retro.readthedocs.io/en/latest/

You should probably start with the Getting Started Guide.

Contributing

See CONTRIBUTING.md

Changelog

See CHANGES.md

Emulated Systems

  • Atari
    • Atari2600 (via Stella)
  • NEC
    • TurboGrafx-16/PC Engine (via Mednafen/Beetle PCE Fast)
  • Nintendo
    • Game Boy/Game Boy Color (via gambatte)
    • Game Boy Advance (via mGBA)
    • Nintendo Entertainment System (via FCEUmm)
    • Super Nintendo Entertainment System (via Snes9x)
  • Sega
    • GameGear (via Genesis Plus GX)
    • Genesis/Mega Drive (via Genesis Plus GX)
    • Master System (via Genesis Plus GX)

See LICENSES.md for information on the licenses of the individual cores.

Included ROMs

The following non-commercial ROMs are included with Gym Retro for testing purposes:

  • the 128 sine-dot by Anthrox
  • Sega Tween by Ben Ryves
  • Happy 10! by Blind IO
  • 512-Colour Test Demo by Chris Covell
  • Dekadrive by Dekadence
  • Automaton by Derek Ledbetter
  • Fire by dox
  • FamiCON intro by dr88
  • Airstriker by Electrokinesis
  • Lost Marbles by Vantage

Citation

Please cite using the following BibTeX entry:

@article{nichol2018retro,
  title={Gotta Learn Fast: A New Benchmark for Generalization in RL},
  author={Nichol, Alex and Pfau, Vicki and Hesse, Christopher and Klimov, Oleg and Schulman, John},
  journal={arXiv preprint arXiv:1804.03720},
  year={2018}
}

GitHub Issues· 62 open

View all on GitHub
  • #291

    Terry practice

    Updated Jan 22, 2026
  • #290

    Casrle wolfensrein

    Updated Jan 5, 2026
  • #288

    Official Support for new version of Python

    Updated Oct 31, 2024
  • #264

    Installation fail on Mac M1

    Updated Aug 11, 2024
  • #287

    Integration UI's download link has expired

    Updated Apr 30, 2024
  • #284

    Mario Bros 3 - Can't Find Rom

    Updated Dec 3, 2023
  • #283

    Add support to new versions!

    Updated Nov 18, 2023
  • #282

    Is there a C# version available?

    Updated Nov 16, 2023
  • #231

    Installation fails on Mac M1

    Updated Sep 6, 2023
  • #277

    support double dragon Neo-Geo(MAME Emulator) or PS ?

    Updated Sep 6, 2023

Highlights

  • •Windows 7, 8, 10
  • •macOS 10.13 (High Sierra), 10.14 (Mojave)
  • •Linux (manylinux1)
  • •Atari2600 (via Stella)
  • •TurboGrafx-16/PC Engine (via Mednafen/Beetle PCE Fast)
  • •Nintendo
  • •Game Boy/Game Boy Color (via gambatte)
  • •Game Boy Advance (via mGBA)
  • •Nintendo Entertainment System (via FCEUmm)
  • •Super Nintendo Entertainment System (via Snes9x)

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言