Skip to content

vivek3141/super-mario-rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Mario AI

The original Super Mario Bros has always been a classic. One of the best part about older games is that they run on lower resolution, which makes it easier to feed into a neural network.

What this program does

This project uses a topic called reinforcement learning. The way it works is by having a reward based system and the program learns on its own to get the best reward. You can read a few articles on the internet to get a gist of it. This program can play the original Mario Bros for the NES.

Requirements

  • Gym - pip install gym
  • Gym Super Mario Bros - pip install gym-super-mario-bros
  • NES-Py - pip install nes-py


As of right now, nes-py is only supported on linux so please run it on linux.
I have tried for hours to try to get it on Windows, to no avail. If you know how to, please let me know so I can update this.

Running

python3 main.py <level you want to run>

Eg. If you want to run 1-1

python3 main.py '1-1'

Images

alt text

Implementation of NEAT can be found here

About

Deep Reinforcement learning and Python learn how to play the original Super Mario Bros

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages