Wave Function Collapse

If you’ve seen procedural generation videos where a grid of possibilities resolves itself tile by tile into a coherent image, you’ve seen WFC. The algorithm:

  1. Every cell starts in superposition — it could be anything.
  2. Find the cell with the lowest entropy (fewest remaining possibilities).
  3. Collapse it — pick one possibility.
  4. Propagate constraints to neighbors — some of their possibilities are now ruled out.
  5. Repeat until every cell is resolved.

The magic is in step 2. By always resolving the most constrained cell first, WFC guarantees that the most interconnected elements get defined first. Everything else fills in around them. The output is coherent because the algorithm prioritizes coherence at every step.

WFC Is What You’ve Already Been Doing

If you’ve played Beak, Feather & Bone, Microscope, or any collaborative worldbuilding game, you’ve already been doing WFC by hand.

When BF&B asks you to draw a card and define a building, you’re collapsing a cell. The card’s suit constrains the building’s temporal frame. The faction you chose constrains its purpose. The buildings already placed constrain what makes sense next. You’re intuitively picking the most constrained, most interesting open question and resolving it.

WFC isn’t a metaphor imposed on TTRPG generation. It’s the unifying language for what these tools were already doing. The Pandemonium Engine just makes the algorithm explicit.

Entropy as Narrative Interest

The lowest-entropy cell isn’t just the most constrained — it’s the most interesting. It’s the node sitting at the intersection of the most existing connections, carrying the most narrative obligations. Resolving it first is both algorithmically correct and dramatically satisfying.

This is why the engine surfaces the right NPC when a player says “I know a guy” — it finds the most constrained uncollapsed person-node, which is always the one with the most story weight.