I Trained an AI to Beat Mario Kart Wiis Hardest Ghost @joshycodes
I Trained an AI to Beat Mario Kart Wiis Hardest Ghost  @joshycodes
Uploaded July 2026 | Updated December 2026, 3 hours ago
I spent three months training an AI to beat the hardest ghost Nintendo ever shipped: the expert staff ghost on Mario Kart Wii's Rainbow Road. No human data, no hints, real physics. It learned from scratch with reinforcement learning — by playing, failing, and trying again, for over one million games.

At first it couldn't survive five seconds. Then it played a full year of in-game Mario Kart without finishing a single race. Then I taught it that falling is bad, and things escalated: first finish at 6:40.137, then the normal staff ghost, then a loss to the expert ghost by two tenths of a second, then the rematch. It ended up at 2:34.163.

CHAPTERS
0:00 The AI that lost by two tenths
1:02 What the AI actually sees
3:13 Weeks of nothing
3:47 Reward shaping (a year of failure)
6:57 The first win
8:08 Studying the world record
10:39 Losing by 0.220 seconds
11:00 The final race — live commentary
14:09 Where it ended up
15:11 The full run, uncut

Huge thanks to vabold/Kinoko and everyone who contributes to it — the Mario Kart Wii physics reimplementation that made verified, accurate training possible: github.com/vabold/Kinoko

Race commentary by carson71: fiverr.com/carson71/be-your-bbc-sport-commentator-or-esports-announcer-voiceover

MUSIC
Vincent Rubinetti - The Music of 3blue1brown: vincerubinetti.bandcamp.com
Mario Kart Wii OST - Rainbow Road
HOME - Resonance / We're Finally Landing
You Say Run + All For One's Theme (My Hero Academia OST)
L's Theme (Death Note OST)
Deja Vu (Initial D)

Before you ask: the code isn't public. Code is booty! I'd rather make the next video than maintain a repo.

#AI #MarioKart #ReinforcementLearning
I Trained an AI to Beat Mario Kart Wiis Hardest GhostI Replaced Every Ad on the Internet With ArtTHIS HAS TAKEN ME SO LONG #animalcrossing #moddingI Visualized My Brainwaves While Listening to MusicI made a supportive robot to cheer me on while I play chessI Built iMessage WrappedI Built A Really Nice Robot :)I Tried To Touch Grass...I Tried Beating Minecraft With an AI.TOP 5 FUNNIEST KILIMANJARO MOMENTS💔 I Programmed a Girlfriend… and She Broke Up with MeI Trained an AI to Go Viral… It Worked Too Well
josh :) |

I Trained an AI to Beat Mario Kart Wii's Hardest Ghost

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER