Super Mario Bros. 3 2-Player VS-mode AI
- Install retroarch:
sudo add-apt-repository ppa:libretro/stable
sudo apt-get update
sudo apt-get install retroarch retroarch-* libretro-*
- Install simplescreenrecorder:
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder
sudo apt-get install simplescreenrecorder-lib:i386
- Install Python-uinput:
sudo pip install python-uinput
- Git clone this repository and build sources under src:
git clone https://github.com/jameshowardwang/smb3-2pvai.git
cd smb3-2pvai
pushd src/
make
popd
- Run retroarch under ssr-glinject and smb3frameprocessor to capture game state:
scripts/ssr-glinject retroarch &
build/smb3frameprocessor
- Run marioInput.py to have AI control Mario
python scripts/marioInput.py