This Computer Learned 'Super Mario' From Scratch — And Now It Can Kick Your Ass

This Computer Learned 'Super Mario' From Scratch — And Now It Can Kick Your Ass
Source: YouTube
Source: YouTube

A computer program just taught itself to play Super Mario World. Guess what? It's really, really good.

On Saturday, programmer SethBling introduced the world to MarI/O, a Machine Learning program he created to play video games. There was one important tweak: Instead of being programmed to run the course perfectly, MarI/O had to learn how to play from scratch. The first time it played, it knew nothing about the game; it didn't know to press the right-arrow button to move forward, for instance.

MarI/O running Super Mario World.
Source: 
YouTube

How it learns: "MarI/O tries 300 genomes per generation, separated into species," SethBling writes on his Twitch TV page. "Each genome produces a neural network, the network's fitness is based on how far right it gets and how quickly it gets there. Only the most fit genomes are bred into the next generation."

Basically: The more MarI/O runs through the level, the more working moves it knows and those working moves get reused in the next try.

The map above Mario shows how the computer is interacting with the different obstacles in the game. The white boxes represent places Mario can stand, and the black boxes represent anything that can kill our hero.

MarI/O starting to learn.
Source: 
YouTube

To be fair, MarI/O took a long time to learn the game. Probably longer than it takes most children, since its first stages were figuring out that the game involves more than just standing at the starting point. But as MarI/O started growing its neural network, picking up moves and learning to dodge those damn baseballs and Super Koopas, it got incredibly good and even had some finesse, like executing a medium-powered jump in order to slip between two enemies stacked on top of one another.

MarI/O being a badass.
Source: 
YouTube

The algorithm SethBling uses isn't his. It's called NEAT, or NeuroEvolution of Augmenting Topologies, from a paper by computer scientist Kenneth Stanley that describes how to use genetic algorithms to build neural networks from nothing — essentially what makes MarI/O tick.

Next level: Sure, a programmer created MarI/O to play video games. But think of the jobs, albeit simple ones, a computer programmed with NEAT could do. Machines that can learn tasks and improve gradually could become robotic auto mechanics and librarians, among other things. If the technology exists for simple things like playing Super Mario World, the possibilities for more vital applications are huge and exciting.

Not that kicking ass at Super Mario isn't the coolest thing ever.

Watch SethBling's video and explanation below, and watch MarI/O learning to beat the game in real time here.

Source: YouTube

How much do you trust the information in this article?

Max Plenke

Max Plenke is a staff writer at Mic, where he covers breaking news, climate science, health and the future. His work has appeared in Esquire, GQ and Wallpaper. Send story tips to max@mic.com.

MORE FROM

Blizzard announces harsher punishments for toxic behavior in 'Overwatch'

Still no word on when reporting will be available for 'Overwatch' on PS4 and Xbox One, though.

Chun-Li is getting a makeover in ‘Marvel vs. Capcom: Infinite’

Chun-Li looks super strange in 'Marvel vs. Capcom: Infinite,' and producers are looking to change that.

‘Pyre’ could be coming to the Nintendo Switch eventually — here's why

Is a 'Pyre' release date coming to the Nintendo Switch? Here's what we know so far.

These minimalist 'Overwatch' character are totally adorable

These fan-made 'Overwatch' character animations are like little Play-Doh balls come to life.

Here's when you can expect the ‘Destiny 2’ beta test for PC to start

When can you play 'Destiny 2' on PC? Here's an idea of when the beta will start.

The NES Classic is back from the dead thanks to ThinkGeek

Nintendo's NES Classic gets one last hurrah

Blizzard announces harsher punishments for toxic behavior in 'Overwatch'

Still no word on when reporting will be available for 'Overwatch' on PS4 and Xbox One, though.

Chun-Li is getting a makeover in ‘Marvel vs. Capcom: Infinite’

Chun-Li looks super strange in 'Marvel vs. Capcom: Infinite,' and producers are looking to change that.

‘Pyre’ could be coming to the Nintendo Switch eventually — here's why

Is a 'Pyre' release date coming to the Nintendo Switch? Here's what we know so far.

These minimalist 'Overwatch' character are totally adorable

These fan-made 'Overwatch' character animations are like little Play-Doh balls come to life.

Here's when you can expect the ‘Destiny 2’ beta test for PC to start

When can you play 'Destiny 2' on PC? Here's an idea of when the beta will start.

The NES Classic is back from the dead thanks to ThinkGeek

Nintendo's NES Classic gets one last hurrah