Coder Social home page Coder Social logo

gluttony47 / nes-punchout-ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rainingcomputers/nes-punchout-ai

0.0 1.0 0.0 79.2 MB

LSTM Network trained to play Punchout, a game released for the NES. This bot uses pykitml ML library.

Python 83.26% Lua 16.74%

nes-punchout-ai's Introduction

demo

NES Punchout AI

LSTM Network trained to play Punchout, a game released for the NES (Nintendo Entertainment System). This bot uses pykitml ML library.

Running

Install requirements

python3 -m pip install -r requirements.txt

(Note: You may have to use python instead of python3 for windows)

Install FCEUX NES Emulator and Lua Socket

Ubuntu/Debian

sudo apt-get install fceux
sudo apt-get install lua5.1-socket

Windows

http://fceux.com/web/download.html

http://files.luaforge.net/releases/luasocket/luasocket/luasocket-2.0.2/luasocket-2.0.2-lua-5.1.2-Win32-vc8.zip

(Copy Lua socket files to FCEUX's directory, say yes to replace files)

Run

Ubuntu/Debian

  • Start script, python3 bot.py

  • Start Fceux

  • Option > Video Config > Set X and Y Scale to 2.0

  • File > Open ROM, browse to punchout_rom.nes

  • File > Load Lua Script, browse to fceux_client.nes

  • Place the FCEUX window on TOP RIGHT CORNER

Windows

  • Start script, python3 bot.py

  • Start FCEUX

  • Config > Video > Window Settings > Set X and Y Scale to 2.0

  • File > Open ROM, browse to punchout_rom.nes

  • File > Lua > New Lua Script Window, browse to punchout_rom.nes, click Run

  • Place the FCEUX window on TOP RIGHT CORNER

(Note: You may have to use python instead of python3 for windows)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.