School of Code Computer Lab
Calgary · Notes from the workbench
2026-11-15

What Should a Game Tell You When You Lose?

A player misses a platform. The screen says “You lost.” Accurate, certainly. The player had probably noticed. The useful question is still unanswered: what went wrong, and what could they sensibly change?

Imagine a hypothetical jumping game being built by a beginner. A character runs towards a gap, jumps and falls. Perhaps the player jumped too early. Perhaps the platform is beyond the character’s maximum reach. Perhaps the character appeared to touch the edge, but the game’s invisible collision boundary disagreed. The same losing screen covers three different problems. Repeating the attempt might help, but it might also repeat the uncertainty.

My proposal is that a beginner designing this game should give defeat a modest responsibility: leave the player with a question they can investigate. That requires some way to inspect the attempt, make a useful comparison and obtain an explanation when experimenting stops helping. These are design judgements, not a research-tested recipe for teaching children.

Start with inspection. In our hypothetical game, we could briefly preserve the character’s final position and offer a button that shows a dotted trail of the jump. Suppose the trail ends short of the platform. That narrows the puzzle, but does not solve it. The character might have taken off too far back, or the jump itself might lack enough reach. A trail shows where something travelled. It does not automatically explain why.

The next design choice is to make a comparison possible. Offer an optional practice attempt with the same gap and movement settings. The player can move the take-off point closer to the edge while leaving the other conditions unchanged. If we also change the gap width and running speed between attempts, interpreting the result becomes harder: which change mattered? For this proposed experiment, keeping those conditions steady gives the next attempt a clear purpose.

We could make the underlying rule inspectable too. Suppose our hypothetical program adds a fixed amount to the character’s horizontal position on every update while a separate vertical movement makes it rise and fall. With horizontal speed fixed, the distance travelled depends on how long the character remains airborne. Optional help could demonstrate that relationship. But if we later add acceleration or mid-air steering, the explanation needs revising. Helpful instructions have maintenance costs, just like code.

There is another possibility worth treating fairly: the player’s reasoning is sound and the game is wrong. We could add a developer view showing the collision boundary—the shape the program checks for contact—over the visible artwork. If the character’s shoes overlap the platform while that boundary does not, “jump more carefully” is an unsatisfactory diagnosis. The maker needs to inspect the mismatch.

This willingness to question the task has a useful parallel outside games. MITx Biology educators describe examining poorly performing assessment questions for unclear wording, grading-code errors and inadequate support, as well as mistakes in learners’ reasoning. Their account describes an assessment-revision practice, not a controlled game experiment. Still, I think its fairness belongs at our workbench: investigate where the difficulty originates before assigning responsibility to the person who failed. [4]

What about the familiar claim that struggling first helps people learn? One small study compared two sequences for undergraduate beginners learning Python lists: attempting a problem before instruction, and receiving instruction before practice. Crucially, the first sequence included discussion of shortcomings and explicit teaching afterwards. In the reported programming-performance analysis, seven of seven participants in that group completed the repeated task successfully two weeks later, compared with six of nine in the instruction-first group. Twenty people participated overall; that analysis included sixteen. [1]

Those numbers are interesting, but too small and too specific to carry a claim about children learning through game defeats. The task was repeated, and the participants were undergraduates. What matters for this argument is that “productive failure” included help in making sense of the attempt. The study did not simply leave people stuck and measure the educational value of their discomfort. [1]

Nor does trying more approaches establish that more learning occurred. In a third-year undergraduate operating-systems course, another study found that productive-failure students explored a wider range of approaches, but detected no statistically significant advantage in reflection or short-term transfer, and no longer-term transfer difference. The available abstract leaves limits on how closely we can assess the methods. It nevertheless gives good reason to be cautious about treating visible activity as sufficient evidence of understanding. [2]

The strongest objection is that a game should be allowed to remain a game. Discovery can be enjoyable. A mysterious failure may be precisely the puzzle a player wants. A dotted trail could reveal too much; a compulsory explanation after every fall could turn play into an interview conducted by a very persistent clipboard.

There is evidence against prescribing one amount of help everywhere. Researchers tested eight tutorial designs across three games with more than 45,000 players. Tutorials increased play time by as much as 29% in the most complex game, but did not significantly improve engagement in the two simpler games. These were engagement findings, not evidence of educational learning. They support caution about assuming that additional explanation always improves an experience. [3]

For our hypothetical game, I would therefore keep replay, practice and rule demonstrations optional. The main challenge could retain its consequences while a separate practice mode permits investigation. That arrangement might suit some players and irritate others. These sources do not establish an ideal retry delay, number of attempts or penalty for children, nor whether this proposed design would improve learning.

A parent beside the keyboard could ask, “What would you like to test next?” If the answer is “I want help,” help is allowed. If the answer is “I just want another go,” that need not trigger an oral examination. For the maker, the harder question comes before adding another lost life: after this defeat, what information will the player have for deciding what to do next?

Sources and further reading

  1. Investigating the Use of Productive Failure as a Design Paradigm for Learning Introductory Python Programming
  2. Exploring Barriers in Productive Failure (ICER 2023 - Research Papers) - ICER 2023
  3. CHI 2012 - Game Experiences
  4. Iterative revisions as part of assessment design | Open Learning