# retro **Repository Path**: li0544/retro ## Basic Information - **Project Name**: retro - **Description**: Gym Retro 允许您将经典视频游戏转换为 Gym 环境,用于强化学习,并附带对约 1000 款游戏的集成。它使用支持 Libretro API 的各种模拟器,因此添加新模拟器相对容易。 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-03 - **Last Updated**: 2025-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **Status:** Maintenance (expect bug fixes and minor updates) # Gym Retro Gym Retro lets you turn classic video games into [Gym](https://gym.openai.com/) environments for reinforcement learning and comes with integrations for ~1000 games. It uses various emulators that support the [Libretro API](https://www.libretro.com/index.php/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](https://retro.readthedocs.io/en/latest/getting_started.html). # Contributing [See CONTRIBUTING.md](https://github.com/openai/retro/blob/master/CONTRIBUTING.md) # Changelog [See CHANGES.md](https://github.com/openai/retro/blob/master/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](https://github.com/openai/retro/blob/master/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](http://www.pouet.net/prod.php?which=2762) by Anthrox - [Sega Tween](https://pdroms.de/files/gamegear/sega-tween) by Ben Ryves - [Happy 10!](http://www.pouet.net/prod.php?which=52716) by Blind IO - [512-Colour Test Demo](https://pdroms.de/files/pcengine/512-colour-test-demo) by Chris Covell - [Dekadrive](http://www.pouet.net/prod.php?which=67142) by Dekadence - [Automaton](https://pdroms.de/files/atari2600/automaton-minigame-compo-2003) by Derek Ledbetter - [Fire](http://privat.bahnhof.se/wb800787/gb/demo/64/) by dox - [FamiCON intro](http://www.pouet.net/prod.php?which=53497) by dr88 - [Airstriker](https://pdroms.de/genesis/airstriker-v1-50-genesis-game) by Electrokinesis - [Lost Marbles](https://pdroms.de/files/gameboyadvance/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} } ```