How Baba Is You Teaches Grammar Through Catastrophe: Designing Failure as a Curriculum

You’ve just pushed the word IS into the word WALL, and now WALL IS STOP has dissolved. The wall that was blocking your path is gone—but so is the floor beneath the exit, because you also accidentally unmade the rule that kept it solid. Your character falls into the void. The level resets. You sit there for a second, not frustrated but recalibrating. The game just taught you something about the grammar of its world by letting you break a sentence you wrote.

That moment in Baba Is You is not an accident of design. It is the design. Hempuli (Arvi Teerikangas) built a puzzle game where the rules are physical objects, and where every wrong move is a syntax error that reveals how the language works. You learn what IS does by watching what happens when it stops doing it. You learn what STOP means by removing it and feeling the world go soft underneath you. The game never tells you any of this. It lets catastrophe be the teacher.

I want to argue that this is not a clever trick unique to one indie puzzle game. It is a design principle the best puzzle games share, whether they know it or not: failure states function as a curriculum. Each wrong answer in a well-designed puzzle game is a controlled misunderstanding that narrows the possibility space until the correct action feels inevitable rather than discovered. The player is not guessing. They are being taught, one mistake at a time, by a system that was built to respond to exactly the mistakes they make.

This is a piece about how to design that curriculum on purpose. I’ll build a reusable lens I call the productive wrong answer, walk through how it works in Sokoban, Hexcells, and a trivia app I spent six months QA-testing, and end with a concrete four-step pattern you can steal from The Case of the Golden Idol’s deduction grid.

The Productive Wrong Answer: A Reusable Lens

Here is the lens. When a player attempts a solution in a puzzle game and fails, ask one question: Does this failure teach the next correct move, or does it simply tell the player they were wrong?

If the failure teaches the next move, it is productive. If it only says no, it is wasteful. Most puzzle games are full of wasteful failures. You push a block the wrong way in a mediocre Sokoban clone, the level resets, and you have learned nothing except that this particular direction was incorrect. The possibility space has not narrowed in a meaningful way because every other direction is equally likely to be wrong. You are not being taught. You are being guessed at.

A productive wrong answer is different. It is a failure that carries information about the system’s grammar, not just its current state. When you accidentally dissolve WALL IS STOP in Baba Is You and fall through the floor, you have not merely learned that this was a bad move. You have learned that the floor was a wall, that walls are walls because of a rule, and that rules are fragile in a specific, predictable way. Your next attempt is informed by three new pieces of understanding, not just one negation.

The lens, then, is a way of evaluating your own design. For every failure state in your puzzle, ask: what does the player know after failing that they did not know before? If the answer is nothing, your failure state is dead weight. If the answer is something specific about how the system works, you have a productive wrong answer. If the answer is something specific and it narrows the remaining possibility space toward the correct solution, you have a failure state that is doing the work of a tutorial without a single word of instruction.

Sokoban’s Push-Constraint Failures: The Quiet Curriculum

Sokoban is the grandparent of this design philosophy, and it is quieter about it than Baba Is You—which is part of why it is worth studying. In a well-designed Sokoban level, when you push a box into a corner, you have made an irreversible error. The level is now unsolvable. But the error is not arbitrary. The corner teaches you something about the constraint system: boxes can only be pushed, never pulled, and once a box is against two walls, it is fixed in place. You learn this not because the game explains it but because the game lets you feel it through the consequences of a single push.

The Sokoban level designer’s craft is in choosing which corners exist and where. Every corner in a Sokoban level is a potential productive wrong answer. The designer is not trying to punish you. They are placing traps that, when triggered, reveal the geometry of the problem. A good Sokoban level has a small number of corners, each one placed so that the player encounters them early, fails, understands why, and then approaches the rest of the level with a sharper mental model. A bad Sokoban level has too many corners, or corners that teach nothing new, and the player experiences the game as trial-and-error rather than learning.

This is the tradeoff: productive wrong answers require the designer to know, in advance, exactly which misunderstandings a player will bring to the puzzle, and to build failure states that target those misunderstandings specifically. You cannot generate this kind of difficulty procedurally without losing the curriculum. A randomly generated Sokoban level has corners everywhere, but most of them teach nothing because they were not placed with any intent. The player fails, but the failure is noise, not signal.

Hexcells and the Elimination of Possibility

Hexcells takes a different route to the same destination. If Sokoban teaches through physical constraint, Hexcells teaches through deductive elimination. Every time you mark a hex as black or blue, you are making a claim about the system. If you are wrong, the game tells you immediately—a small red X, a counter that ticks down. But the failure is not just a negation. It is a contradiction in a logical proof, and the player who understands the proof sees exactly which step was wrong.

The productive wrong answer in Hexcells is the moment when you realize that the number you were reading meant something different from what you assumed. You thought the 3 above the hex referred to three blue hexes in the adjacent ring, but it actually referred to three blue hexes in the column. You mark the wrong hex, the game flags it, and you now understand the numbering convention for the rest of the puzzle. The failure taught you the grammar of the clues.

I played through Hexcells Infinite (2014) and its sequels with a notebook beside me, and what I found was that my wrong answers clustered in the first ten minutes of each new puzzle type and then almost disappeared. The game was teaching me its conventions through a rapid sequence of small, productive failures, and by the time I was deep in a puzzle, I had internalized the rules so thoroughly that I was no longer making mistakes—I was simply reading. This is the sign of a failure curriculum that works: the player stops failing and starts performing, and the transition feels like their own growth rather than the game’s instruction.

What Trivia Apps Get Wrong: The Wasteful Wrong Answer

I spent six months in QA for a mobile trivia platform, and most of my job was logging what players did after they got a question wrong. The pattern was dispiriting. In a typical trivia app, when you select a wrong answer, the screen flashes red, the correct answer is revealed, and you move on. You have learned the correct answer to that specific question. You have not learned anything about how to approach the next question. The failure is not productive because it does not narrow the possibility space of future questions. It is a dead end.

The problem is structural. Most trivia apps treat questions as independent units—each one a self-contained test with no relationship to the ones around it. There is no curriculum because there is no sequence. The player is not building a mental model of the system; they are simply being asked to recall disconnected facts. This is why trivia apps rely on streaks and timers and social pressure to create engagement: the questions themselves cannot do it because their failure states carry no information about the game’s grammar. There is no grammar. There is only a database.

The Institute of Education Sciences, the nation’s leading source for rigorous education research, funds and evaluates exactly the kind of sequential, feedback-driven instruction that trivia apps ignore. IES-supported research on evidence-based learning practices demonstrates that structured failure—where learners receive targeted feedback that redirects their mental models—is a legitimate pedagogical method, not a trick to make failure feel less bad. The principle is the same whether you are teaching a child algebra or teaching a player that the 3 in Hexcells refers to a column, not a ring: the wrong answer must carry information about the system’s structure, not just a binary judgment about the player’s correctness.

Edutopia, which focuses on what works in education, covers a parallel problem in math instruction where students rely on surface-level keyword cues instead of reading the whole problem. Their work on rescuing students from what they call keyword traps describes a failure mode that should be deeply familiar to any game designer who has watched players pattern-match their way through a puzzle without understanding why their solution works. The student sees the word more and assumes addition; the player sees a block and assumes they should push it. Both are surface-level responses to a system that requires structural understanding, and both are failures of the design to make the grammar legible through the feedback it gives.

The Four-Step Pattern: Stealing from The Case of the Golden Idol

The Case of the Golden Idol (2022) is the clearest implementation of productive wrong answers I have seen in a digital game, and its deduction grid is something you can steal from directly. Here is how it works and how to adapt it.

The game presents a frozen scene—a painting of a moment after something has happened—and asks you to fill in the blanks of a narrative sentence using words you collect from the scene. You drag names into slots: WHO did WHAT to WHOM with WHAT. The game does not tell you if you are right until you have filled in the entire sentence, at which point it either accepts or rejects the complete statement. This means every partial attempt is a hypothesis, and every rejection is a productive wrong answer that tells you which part of your model was incorrect.

Here is the four-step pattern, generalized from that structure:

Step one: Require commitment before feedback. The player must assemble a complete hypothesis before the game tells them anything. This forces them to commit to a mental model rather than testing pieces in isolation. In The Case of the Golden Idol, you cannot just guess the weapon; you must guess the killer, the victim, the action, and the weapon all at once. This means your wrong answer is a full sentence, not a fragment, and the game’s rejection tells you that something in that sentence is wrong—which is more information than you would get from testing one slot at a time.

Step two: Make the wrong answer visible as a structure, not a score. When the game rejects your sentence, it does not tell you which part was wrong. It simply resets. But the sentence you built is still there, visible, and you can see it as a structure. This is crucial: the failure is not a number ticking down or a screen flashing red. It is a visible artifact that the player can inspect, compare to the scene, and revise. The wrong answer is content, not waste.

Step three: Ensure each rejection narrows the space. After each failed attempt, the player eliminates at least one hypothesis from their mental list. They know that this particular combination of killer, victim, and weapon is wrong, which means at least one of those assignments is incorrect. They go back to the scene and look more carefully. The next attempt is not a random guess; it is a revised model informed by what the previous rejection ruled out. This is the productive wrong answer in its purest form: a failure that makes the next attempt smarter, not just more desperate.

Step four: Let the correct answer feel inevitable. When the player finally fills in the correct sentence, the game accepts it, and the scene animates forward. The player does not feel clever for guessing. They feel satisfied because the correct answer was the only one that remained after all the wrong ones were eliminated. This is the feeling of a curriculum that has done its job: the learner arrives at the right answer not by luck but by a sequence of structured misunderstandings that closed every door except the correct one.

Documenting the Failure Curriculum

Here is where most indie puzzle projects fall apart. You can design a brilliant failure sequence on paper, but if you do not document the sequence of misunderstandings you intend the player to move through, the implementation will drift. The level designer adds a corner that was not in the plan. A tester finds a shortcut that skips two steps of the curriculum. The artist changes a visual cue that was load-bearing for the third productive wrong answer. Without a document that maps the player’s misconception path—the specific wrong assumptions they are supposed to have, in the specific order they are supposed to have them—the failure curriculum dissolves into noise.

In my QA work, I kept a spreadsheet for every level I tested that had three columns: what the player assumed, what the failure told them, and what they tried next. If the third column was empty—meaning the failure did not suggest a next move—the level was broken regardless of whether it was technically solvable. That spreadsheet was the failure curriculum, and it was the most useful design document I ever produced, because it forced me to articulate what each wrong answer was for.

That same documentation discipline extends to narrative-driven puzzle games, where designers who use an AI plot generator to map branching consequence structures can trace which player misconceptions each story failure should target before committing to the level design that depends on them.

That same discipline applies to narrative structure: before publishing, editors need a way to test events, claims, and consequences actually follow one another, which is where an AI plot generator that fits the project can function as a planning aid rather than a substitute for domain evidence.

The Cost of the Curriculum

Building a failure curriculum is expensive, and the expense is the reason most puzzle games do not have one. Hand-placing every productive wrong answer in Baba Is You took Hempuli years of iteration. The Case of the Golden Idol has roughly forty scenes, each with a bespoke deduction grid, each tested to ensure that the wrong answers a player is likely to construct teach something specific rather than simply blocking progress. That is months of design and QA for a game a determined player can finish in an afternoon. The cost is not just time—it is also content throughput. A failure curriculum cannot be procedurally generated without losing the intentional relationship between the player’s specific misconception and the specific feedback the game gives. You can generate a million Sokoban levels overnight, but none of them will teach anything, because the corners were not placed with intent.

The tradeoff, then, is between scope and depth. If you want a puzzle game that teaches through failure, you are choosing to build fewer puzzles—maybe twenty or thirty hand-crafted levels instead of two hundred generated ones—and to invest the saved production time in mapping the misconception path for each one. This is a hard sell to a producer who wants content volume, but it is the only way to get a failure curriculum that actually works. The alternative is the trivia app approach: a thousand questions, no grammar, no curriculum, and a player who learns nothing from being wrong.

What You Can Do Tomorrow

The fix does not require new content. It requires rethinking the feedback the failure gives. If a wrong push in your Sokoban variant simply resets the level, ask: what if the block stayed where you pushed it, so the player could see the corner they created and understand why it was wrong? If a wrong answer in your trivia game simply reveals the correct one, ask: what if the wrong answer came with a structural note—why this distractor was plausible, what reasoning would lead a knowledgeable player to pick it, what misconception it reveals? The research on corrective feedback is clear: feedback that explains the misconception outperforms feedback that simply marks the answer wrong, by a significant margin, across age groups and subject domains.

Start with one level. Map the misconception path: the three or four wrong assumptions a player is most likely to bring to this puzzle, in the order they are likely to encounter them. For each assumption, design a failure state that targets it specifically—not a reset, not a red flash, but a consequence that makes the assumption visible and its correction obvious. Test it. Watch what players do after they fail. If they pause, look at the screen, and then try something different with visible intent, your failure curriculum is working. If they reset and try the same thing again, it is not. That pause is the signal. That pause is the sound of a player learning the grammar of your game from the inside, one broken sentence at a time.