I'm enraptured by this Zelda maniac who worked out there are 1 quadrillion 83 trillion 414 billion and 90 million possible permutations for a dog race in Majora's Mask

The cover art for Majora's Mask showing Link and various other characters from the game.
(Image credit: Nintendo)

Yes it's a Zelda game, but bear with me because this is a story only possible on PC. The Legend of Zelda: Majora's Mask was first released on the Nintendo 64 in 2000, and since then has been the mainline entry that all the cool kids say is best. There are plenty of reasons for this, from the grim and unsettling atmosphere to the brilliant Groundhog Day structure, but one of the enduring appeals is all of the game's mysteries.

Most of these are intentional and authored by Nintendo, but some are not. And one of the biggest unresolved questions about Majora's Mask is about a dog racing minigame where, to put it mildly, the odds are heavily stacked against one blue dog in particular.

Yep, this is an underdog story. At the back of Romani Ranch there's a location called Doggy Racetrack, where the player finds 14 dogs: Four are coloured white, three beige, three gray, two brown, one gold and one blue. Link can place a bet on any dog and then watch a race play out… except not all dogs have been created equal.

Faced with such an insurmountable number, Falkush wrote a script that would run the race repeatedly on an emulator from the same starting state: One where the blue dog is in the best possible mood, maximising its chances of winning. After each race it advances the game by one frame to change the hidden RNG value for the next race before it starts. By automating the process (with some clever use of an auto-splitter to record race results for Falkush to later check-over) Falkush was able to get the game running thousands of races a day.

After three days and 8,410 races, this happened:

The blue dog's first-ever recorded victory, thanks to the glitch. The fact it only took 8,410 races indicates the glitch may be more common than thought, but in the glitch-less races the blue dog was still lagging with its best finish fourth place.

This wasn't enough for Falkush, who wanted a legitimate blue dog victory. They tweaked the script to not only maximise blue dog's chances, but minimise the chances of the gold dog and the other faster dogs (based on their pre-race condition). If there were any circumstances under which the blue dog could win, this was them.

Falkush has a Github repository showing all their work brute-forcing blue dog, should you be so inclined, but all that most of us need to do is watch the below: After over 30,000 attempts, the first-ever legitimate recorded blue dog victory in Majora's Mask, well over two decades after release.

Blue Dog True Win (Majora's Mask N64) - YouTube Blue Dog True Win (Majora's Mask N64) - YouTube
Watch On

This story encapsulates everything I love about speedrunning. The practice is not just about watching someone go through a game fast, but about how people get into the guts of games, reverse-engineer what's going on, and set themselves challenges to solve. There's no world record for the blue dog winning the race in Majora's Mask: People just knew it wasn't supposed to happen, and it possibly couldn't happen, and decided to tinker around inside this little universe to see if, in any possible reality, blue dog could win. It's a testament to ingenuity, hard work, community collaboration, and of course object proof of that old canard: Every dog really does have its day.

Rich Stanton
Senior Editor

Rich is a games journalist with 15 years' experience, beginning his career on Edge magazine before working for a wide range of outlets, including Ars Technica, Eurogamer, GamesRadar+, Gamespot, the Guardian, IGN, the New Statesman, Polygon, and Vice. He was the editor of Kotaku UK, the UK arm of Kotaku, for three years before joining PC Gamer. He is the author of a Brief History of Video Games, a full history of the medium, which the Midwest Book Review described as "[a] must-read for serious minded game historians and curious video game connoisseurs alike."