Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Python3 NES emulator and OpenAI Gym interface

License

NotificationsYou must be signed in to change notification settings

Kautenja/nes-py

Repository files navigation

build-statusPackageVersionPythonVersionStableFormatLicense

nes-py is an NES emulator and OpenAI Gym interface for MacOS, Linux, andWindows based on theSimpleNES emulator.

Bomberman IICastelvania IIExcitebike
Super Mario Bros.The Legend of ZeldaTetris
ContraMega Man IIBubble Bobble

Installation

The preferred installation ofnes-py is frompip:

pip install nes-py

Debian

Make sure you have theclang++ compiler installed:

sudo apt-get install clang

Windows

You'll need to install the Visual-Studio 17.0 tools for Windows installation.TheVisual Studio Communitypackage provides these tools for free.

Usage

To access the NES emulator from the command line use the following command.

nes_py -r<path_to_rom>

To print out documentation for the command line interface execute:

nes_py -h

Controls

Keyboard KeyNES Joypad
WUp
ALeft
SDown
DRight
OA
PB
EnterStart
SpaceSelect

Parallelism Caveats

both thethreading andmultiprocessing packages are supported bynes-py with some caveats related to rendering:

  1. renderingis not supported from instances ofthreading.Thread
  2. renderingis supported from instances ofmultiprocessing.Process,butnes-py must be imported within the process that executes the rendercall

Development

To design a custom environment usingnes-py, introduce new features, or fixa bug, please refer to theWiki.There you will find instructions for:

  • setting up the development environment
  • designing environments based on theNESEnv class
  • reference material for theNESEnv API
  • documentation for thenes_py.wrappers module

Cartridge Mapper Compatibility

  1. NROM
  2. MMC1 / SxROM
  3. UxROM
  4. CNROM

You can check the compatibility for each ROM in the followinglist

Disclaimer

This project is provided for educational purposes only. It is notaffiliated with and has not been approved by Nintendo.


[8]ページ先頭

©2009-2025 Movatter.jp