a bot that learns to play super mario bros. a work in progress. kinda sucks right now.
Find a file
2018-06-14 22:42:51 +02:00
ars.lua more comments 2018-06-14 22:15:49 +02:00
Base.lua forgot this 2017-06-30 06:17:26 +00:00
config.lua add snes2 xnes2 presets, cleanup, tweaks etc. 2018-06-14 22:42:51 +02:00
gameconfig.lua tweak inputs: add power-up status, remove top/bottom tile rows 2018-06-13 20:18:10 +02:00
main.lua add sigma decay to xNES 2018-06-14 22:40:39 +02:00
nn.lua allow Dense layers without biasing 2018-06-13 01:02:41 +02:00
README.txt add usage instructions 2018-06-13 02:03:26 +02:00
smb.lua tweak inputs: add power-up status, remove top/bottom tile rows 2018-06-13 20:18:10 +02:00
snes.lua restore step logging, remove adamant (for now) 2018-06-13 01:42:36 +02:00
strict.lua split strictness to its own file 2018-05-03 16:48:12 +02:00
util.lua use locals; fix fitness_shaping and graycode 2018-06-13 22:52:37 +02:00
xnes.lua cleanup 2018-06-14 22:40:52 +02:00

this program is largely incomplete and not in a presentable state.
please be mindful when sharing it.
however, feel free to copy any snippets of code you find useful.

usage:
0. edit config.lua as you please
1. open FCEUX 2.2.3
2. load Super Mario Bros. (U) (CRC32: 3337EC46)
3. open a new Lua script window (it's in the File menu)
4. browse and open main.lua

TODOs: (that i can remember right now)
- normalize `for i=a,b` code style
- normalize and/or embed sprite type inputs
- settle on a network architecture
- compute how many input neurons the network needs instead of hardcoding
- add some detection for enemies later in the game
- fix cfg.enable_overlay (smb.lua doesn't see it being changed)

naive:
- learn any combination of buttons, starting from title screen
- learn to run network without frameskip
- learn other games