Sub topic 1
What Win, Lose, and Fail States Are and Why They Matter
Prerequisites
This chapter assumes that you understand a basic game loop: the player takes actions, the game updates its state, and the player sees the result. You should also be familiar with conditionals, functions, and common game mechanics such as health, objectives, checkpoints, and lives.
A game outcome is the result the game assigns to the current situation. Outcomes tell the player whether they have completed the goal, ended the run, or encountered a setback they can recover from. Designing these outcomes explicitly prevents contradictory rules and unclear feedback.
The Three Types of Outcome
A win state means that the player has met the game’s success requirements. The game may complete a level, show a victory screen, unlock content, or move to the next stage. A win condition should be measurable. “Play well” is difficult to implement and difficult for players to understand. “Deliver three packages before time runs out” is measurable.
A lose state means that the current attempt or game has ended without success. The player may need to restart the level, reload a save, or accept a final result. Running out of health in a one-life challenge is a lose state. In a story game, making a choice that permanently ends the protagonist’s mission can also be a lose state.
A fail state is a setback that does not end the entire attempt. The player fails a jump, loses a life, or triggers an alarm, but can continue after a recovery action. A fail state creates a cost without necessarily removing all progress.
| Outcome | Meaning | Typical response |
|---|---|---|
| Win | The success goal is complete | Advance, celebrate, or unlock content |
| Lose | The current attempt cannot continue successfully | Restart, reload, or show the final result |
| Fail | A local setback occurs, but recovery is possible | Respawn, retry, or continue with a cost |
The boundary between fail and lose depends on the game’s rules. If a character dies but has remaining lives, the death can be a fail state. When the last life is spent, the same event becomes a lose state. The event is similar, but its effect on the larger run is different.
Why the Distinction Matters
Players build plans around consequences. If they know that a mistake only returns them to a checkpoint, they may experiment. If the same mistake deletes an hour of progress, they will act cautiously or stop playing. Outcome design therefore controls tension, pacing, and motivation.
Clear outcomes also make the game easier to learn. A player should be able to answer these questions:
- What am I trying to accomplish?
- What actions move me closer to success?
- What ends this attempt?
- What happens when I make a mistake?
- What progress survives the setback?
When those answers are unclear, players may blame the game rather than their decisions. A hidden timer, an unexplained instant death, or a victory condition that triggers unexpectedly can make a fair system feel unfair.
A Simple Outcome Model
Treat outcomes as named states rather than scattered effects. The game evaluates relevant values, chooses one outcome, and then presents it consistently.
from enum import Enum, auto
class Outcome(Enum):
PLAYING = auto()
WON = auto()
LOST = auto()
def evaluate(health, relics, relics_needed):
# The order defines what happens when conditions overlap.
if health <= 0:
return Outcome.LOST
if relics >= relics_needed:
return Outcome.WON
return Outcome.PLAYINGThe order of the checks is a design decision. In this example, zero health takes priority over collecting the final relic. If both happen during one update, the result is a loss. Another game could check the win condition first and reward the player. Neither rule is automatically correct, but the rule must be deliberate and consistent.
A fail state usually needs additional information, such as the player’s remaining lives or checkpoint. It changes the current situation while preserving enough progress to continue.
Design Questions
Before implementing an outcome, write its rule in a sentence that includes a measurable trigger and a consequence. For example: “The player wins when all four signal towers are activated.” Then define exceptions: “If health reaches zero before the final tower activates, the player loses.”
Check whether the player can predict the result before committing to a risky action. If not, add feedback or simplify the rule. Predictability does not mean that the game must be easy. It means that success and failure should follow understandable causes.
Exercise
A platform game gives the player three lives. Falling into a pit removes one life and returns the player to the latest checkpoint. What outcome occurs after the first fall, and what occurs after the third fall?
Show answer
The first fall is a fail state because the player can recover and continue. The third fall is a lose state because no lives remain.