MarI/O - Machine Learning for Video Games

SethBling · 11.5M views · 2015 · 5:58

Open on YouTube

Machine learning & deep learningSpeedrunning, glitches & game hackingdemo

Why Hacker News recommends it

The go-to accessible introduction to neuroevolution and NEAT, praised for crediting prior research.

What it is

SethBling shows MarI/O, a program using neural networks and the NEAT genetic algorithm to learn to play Super Mario World. The description links the source code, the paper and background reading.

Recommended by 10 HN commenters across 10 different months, 2015 to 2026.

What Hacker News said

Strong rec deepnet · 2018-04 · on “The differences between tinkering and research (2016)”

OP, Togelius, is quite wrong in 1 point at least. tl;dr Seth Bling directly references NEAT and his links[Show More [1]] link to 2 Togelius papers[13][14] among many others ! To wit, in OP, Togelius mentions Seth Bling's MarI/O[1] as lacking scholarship because he didn't mention Togelius: " seen as research, it is atrocious because of the complete lack of scholarship. The guy didn't even know he was reinventing the wheel, and didn't care to look it up. " Rather disdaignfully (sadly/ ironically/ poigniantly) Togelius refers to Seth not by name but only as " some guy ". Yet Seth Bling[2] in his short video, mentions and explains NEAT and directly links Ken Stanley's and Risto Miikkulainen's fo

Strong rec dberst · 2024-09 · on “Synchronizing Pong to music with constrained optimization”

I'm a novice at machine learning, but Open AI made a python library for reinforcement learning in video games, and a fork of it is still actively maintained [1]. It's been a few years, but I remember being able to get it up and running in a day or two (maybe a weekend). It used the Retroarch emulator, which is compatible with a huge number of emulators and consoles. [LINK] There also SethBling's excellent video on YouTube about machine learning specifically with Super Mario World: [this video] I encourage you to give it a try! I feel that video games are a bit underrated by current AI buzz, I think there's lots of potential for a machine to learn a skill through playing a game. And lots of potent

Strong rec andai · 2025-06 · on “Self-Adapting Language Models”

Here is my favorite introduction to NEAT: SethBling's MarI/O - Machine Learning for Video Games [this video]

Recommends pdkl95 · 2015-06 · on “Hacking Super Mario World to Warp to the Credits [video]”

I believe it's been posted before, but sethbling (of vanilla-minecraft-hacks fame) pulled off the impossible and did the credit warp on an actual SNES, live[1]. As this video very-nicely explains, this required incredible amounts of pixel-perfect accuracy. Lining up the line of koopa shells on exact x-offsets and very narrow heights mid jump (!) to write the landing-sled - using a controller, realtime - is utterly insane. As a side note sethbling's latest project is teaching[2] (using neuro-evolution) his machine learning bot to play SMW[2], SMB1[3], and Mario Kart (original)[4]. While he machine learning is simple by today's standards, his brief videos give a really nice introduction to the

Recommends slpsys · 2016-03 · on “Ask HN: What are some examples of beautiful software?”

There is an objective, but it may not be exactly as you reason about it. There's a great video that made the rounds last year about building a neural net that plays Super Mario World, that may help visualize what's going on - [this video] There's also a great snippet in the currently-ongoing AlphaGo videos that explains that when AlphaGo plays in ways that you may not expect, it's because it's strictly worried about _winning_ (even by the slimmest margin) with the greatest probability, and not necessarily by winning handily, like a human might.

Recommends notgood · 2016-11 · on “NeuroEvolution – Flappy Bird”

You mean this script? Or machine learning in general? If the later then it has already been done: [this video] (great educational video)

Recommends new299 · 2016-12 · on “Whence your reward function?”

This video of a Super Mario playing AI was pretty neat: [this video] It may, or may not be on a useful path to solving harder AI problems. I don't know. But it's a good way of demonstrating value (and publishing papers).

Recommends intunderflow · 2022-04 · on “Ask HN: Which algorithms based on biological ideas do you know?”

Neuroevolution of Augmenting Topologies is a classic genetic algorithm, as a teenager it was my first genetic algorithm I implemented after watching a Youtube video of an implementation of it - [this video]