https://github.com/rainingcomputers/nes-punchout-ai
LSTM Network trained to play Punchout, a game released for the NES. This bot uses pykitml ML library.
https://github.com/rainingcomputers/nes-punchout-ai
Last synced: 11 months ago
JSON representation
LSTM Network trained to play Punchout, a game released for the NES. This bot uses pykitml ML library.
- Host: GitHub
- URL: https://github.com/rainingcomputers/nes-punchout-ai
- Owner: RainingComputers
- Created: 2020-11-02T12:05:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T12:36:52.000Z (over 5 years ago)
- Last Synced: 2025-04-03T01:34:04.908Z (about 1 year ago)
- Language: Python
- Size: 77.3 MB
- Stars: 22
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# NES Punchout AI
LSTM Network trained to play [Punchout](https://en.wikipedia.org/wiki/Punch-Out!!_(NES)), a game released for the NES (Nintendo Entertainment System). This bot uses [pykitml](https://github.com/RainingComputers/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)