I put a real fruit fly’s brain in charge of Super Mario Bros — Transcript
Full transcript
- 0:00This is a fruit fly playing Super Mario
- 0:02Bros.
- 0:03In 2025, Janelia and Google mapped every
- 0:06neuron in a male fruit fly.
- 0:08All of them. Then they put it on the
- 0:10internet. The internet went wild and
- 0:13pushed it to its absolute limits.
- 0:16So I had to try it myself.
- 0:19It all started a month ago, when I started
- 0:21playing around with the fly.
- 0:23Things got messy real quick.
- 0:25So, the basics.
- 0:27We read the game and turn it into things
- 0:29the fly can sense. Whichever neurons fire,
- 0:32decide the move.
- 0:34Let's start with the fly.
- 0:35Let's call him Flyuigi.
- 0:39Flyuigi wants to go home.
- 0:43So we shine a home signal in front of him.
- 0:47Let's put the signal on the right, and
- 0:49Flyuigi walks towards the flag.
- 0:54Now he needs to learn to jump.
- 0:56When something looms over a fly's vision,
- 0:59the fly jumps.
- 1:02Let's make the Koopa and Goomba appear
- 1:03big. Let's also make the pipes, pits and
- 1:06blocks loom.
- 1:07Great. Now he can jump over things.
- 1:11Right now he's an overglorified Google
- 1:13dinosaur.
- 1:18Let's make it interesting.
- 1:19Let's see if he can power up.
- 1:22A loud sound startles a fly.
- 1:24It jumps, or moves away.
- 1:27So let's put a buzz on the question block.
- 1:29Flies are attracted to sweet smells, so
- 1:31let's make the mushrooms smell sweet.
- 1:33And flies hate sour smells, so let's make
- 1:36the enemies smell sour.
- 1:38And run it!
- 1:40He hits the question block.
- 1:41He grabs the mushroom.
- 1:42He powers up.
- 1:46He backs away from the first Goomba.
- 1:48So why does he walk straight into the
- 1:50second one? Flyuigi gets confused when
- 1:53there's too much going on.
- 1:55So we need to tune how strong each sense
- 1:57is so he makes better decisions.
- 1:59Tuning by hand takes forever.
- 2:02This took me back to SethBling's MarI/O.
- 2:06But instead of evolving the brain, we only
- 2:09evolve how strong each sense is.
- 2:11The wiring is never touched.
- 2:14Cue the montage! Each generation gets a
- 2:16fitness score based on how far Flyuigi
- 2:18gets and how many points he collects.
- 2:20Each new generation is bred from the best
- 2:23of the last. Before evolution, we got 1
- 2:25win in 10 attempts.
- 2:27After evolution, we won all 10.
- 2:29A few honest caveats.
- 2:32The pit logic doesn't generalize to other
- 2:34levels.
- 2:35Mario also stalls at the finish when
- 2:37there's no flag.
- 2:39And evolution only ran on one level.
- 2:43Shout-out to Ro0oney, whose Minecraft mod
- 2:45and awesome sandbox inspired this project.
- 2:50And lastly, shout-out to Flyuigi.
- 2:52You're an absolute legend, bro.
- 2:55If you enjoyed this, like and share.
- 2:58And if you're a recruiter watching this,
- 3:01feel free to check out my tool.
- 3:03The link is in the description.
- 3:04If you want to join my open source project
- 3:06to make Flyuigi win all levels, hit me up.
- 3:09I'll see you guys next time.
About this transcript
This page contains the full transcript of I put a real fruit fly’s brain in charge of Super Mario Bros by codeRun, generated from the public captions YouTube serves with the video. The transcript has 468 words across 78 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.