Skip to main content
Back

MIT Proves 3D Mario and Sokobond Are Computationally Unsolvable With One Gadget

A universal door gadget lets researchers prove Super Mario, Zelda, Donkey Kong Country, and eight 3D Mario titles are PSPACE-complete without messy crossovers.

Pro

Paper, Full Access
  • Open-close door gadget proven PSPACE-complete and universal for planar motion planning
  • Eliminates need for crossover gadgets in past hardness proofs of 2D Nintendo games
  • New PSPACE-hardness results for eight 3D Mario titles and Sokobond
  • Universality extends to self-closing and symmetric self-closing door variants
  • Simplifies proofs for Lemmings, Super Mario Bros., Zelda, Donkey Kong Country
  • Provides a compact, reusable template for future motion-planning hardness reductions

A group of complexity theorists at MIT has closed a loose end that has bothered anyone who reads hardness proofs about video games. Their new paper shows that a single, minimal building block called an open-close door gadget is enough to encode any hard motion-planning problem, and it can do so on a flat 2D map with no wires crossing. Walking through Doors is Hard, even without Staircases collapses a pile of ad hoc constructions into one clean template, and uses it to prove eight different 3D Mario games and the chemistry puzzler Sokobond are PSPACE-complete.

One gadget to rule them all

Motion planning through gadgets is a proof technique that models a puzzle as a graph of small state machines. Each gadget has a few tunnels an agent can enter and exit, plus an internal state that changes as the agent walks through. The framework analyzes the complexity of routing a single robot through a graph of these components, each with its own state, locations, and allowed traversals that can depend on and change the state. Ask whether the agent can reach a goal, and depending on which gadget you picked, the answer ranges from trivially polynomial to PSPACE-complete or worse.

PSPACE-complete means the problem is at least as hard as any problem solvable with a polynomial amount of memory, which covers essentially every reasonable puzzle-solver you can imagine. This framework has produced PSPACE-completeness proofs for a wide range of motion-planning problems, from swarm and modular robotics to DNA computing to video games.

What the door does

The star of the paper is the open-close door. It has two states, open and closed, and three tunnels: one that flips the door open, one that flips it closed, and a traverse tunnel that only works while the door is open. That is roughly the mental model of a switch-and-gate in any platformer.

Diagram of open-close door gadget variants with directed tunnels

The authors prove two things about this gadget. First, deciding whether an agent can navigate from point A to point B through a planar network of doors is PSPACE-complete. Second, and more surprising, the door is universal: any other gadget in the framework can be simulated by a planar arrangement of them. Because the simulation stays planar, you never need to build a crossover, a construction that lets two paths cross without interacting. Crossovers have historically been the tedious, error-prone part of hardness proofs for 2D games.

Killing the crossover

Older proofs for Super Mario Bros., Legend of Zelda, and Donkey Kong Country all had to hand-build a crossover in the game engine, which often took pages of case analysis and sometimes contained bugs. The new construction removes that step entirely. If you can implement the door gadget in your game, you get PSPACE-hardness for free.

The paper also generalizes the result to several door variants:

  • Any cyclic order of the opening, closing, and traverse tunnels around the door
  • Directed or undirected tunnels
  • The opening tunnel replaced with an optional button that shares an entrance and exit point
  • Self-closing doors, which shut automatically after a traversal
  • Symmetric self-closing doors, the simplest variant

Every one of these turns out to be PSPACE-complete and universal on its own.

Self-closing door gadget with directed tunnels and button variant

New scalps: 3D Mario and Sokobond

To demonstrate the framework in action, the authors reduce door networks into eight 3D Mario titles and Sokobond, a puzzle game where molecules bond as they slide around a grid. All are shown PSPACE-hard. The proofs are shorter and more modular than the earlier 2D Mario hardness result, because the planarity of the door construction lines up with the level geometry of the games without requiring extra gymnastics.

Where this lands in practice

This is a theoretical result, so there is no code repo and no model to download. What you get is a cleaner tool for future hardness proofs. If you are studying planning algorithms, robot navigation, or game AI, the door gadget is worth adding to your mental toolkit for a few reasons:

  • Speedrun-style solvers that treat a level as a search problem provably cannot scale in the worst case, because the search space is PSPACE-hard
  • Reinforcement learning benchmarks based on puzzle games inherit the same worst-case wall, which is useful context when interpreting sample-efficiency results
  • Robotics researchers designing configuration spaces can use door gadgets as a compact certificate that their planning setup is fully general

The framework has been growing quickly in adjacent work, including reversible deterministic systems and bounded-bandwidth gadget graphs, and the door paper is now the standard entry point. It will not help you ship a product next quarter, but the next time someone claims their planner solves general 3D platformer levels efficiently, you have a very short counterexample to hand them.