Sub topic 2
Verbs form the core loop
This chapter assumes you can tell a player verb from a button press, which the previous chapter covered. It also assumes you can read short Python snippets. The aim here is to see how verbs combine into the repeating cycle that a game is built on, and to learn how to inspect that cycle for faults.
What a core loop is
A core loop is the short sequence of actions a player repeats throughout a game. Each pass through it produces an outcome that sets up the next pass. The loop is defined by its verbs. If you list the verbs a player uses most often, in the order they use them, you have written the loop.
Take a few familiar games.
| Game | Verbs in the loop | What the loop produces |
|---|---|---|
| Tetris | move, rotate, drop | Cleared lines and a changed board |
| Super Mario Bros. | run, jump, stomp | Progress through the level |
| Stardew Valley | till, plant, water, harvest, sell, buy | Money, which buys more seeds and tools |
| Slay the Spire | play card, end turn, choose path | Defeated enemies, new cards, a new map position |
Two things stand out. First, each loop is a handful of verbs, not dozens. Second, in every loop the output of one verb becomes the input of another. In Stardew Valley, planting needs seeds, and seeds need money, which selling a harvest supplies. The loop closes on itself.
The anatomy of one pass
A single pass through a loop has a fixed shape:
- The player looks at the current state and forms an intent.
- The player picks a verb that serves the intent.
- The game resolves the verb and changes the state.
- The game gives feedback: a sound, an animation, a number going up.
- The new state suggests the next intent.
Step 5 is what makes it a loop and not a sequence. If the new state offers nothing to do, the loop has ended.
Loops at several time scales
Most games have more than one loop, nested by duration.
- The micro loop lasts seconds. In Mario it is run, jump, land. The player's attention is on timing and execution.
- The meso loop lasts minutes. In Mario it is finish a level, get a new layout with new hazards. The player's attention is on planning.
- The macro loop lasts hours. It covers progression across the whole game: new worlds, new powers, the ending.
The same verb can appear in several loops with a different job in each. Jumping in the micro loop crosses a gap. Jumping in the meso loop might find a hidden block that changes the route. When you list verbs, note the scale at which each one matters most. A verb that matters at only one scale and nowhere else is worth a second look.
Tracing a loop as data
You can check a loop mechanically. Write each verb with what it consumes and what it produces, and look for gaps. The snippet below does this for the farming loop with one deliberately broken verb, fish.
LOOP = {
"buy_seeds": ({"gold"}, {"seeds"}),
"plant": ({"seeds"}, {"crop_growing"}),
"water": ({"crop_growing"}, {"crop_ready"}),
"harvest": ({"crop_ready"}, {"produce"}),
"sell": ({"produce"}, {"gold"}),
"fish": ({"bait"}, {"fish"}),
}
START = {"gold"} # what the player has before the first verb
produced = set().union(*(out for _, out in LOOP.values()))
consumed = set().union(*(inp for inp, _ in LOOP.values()))
print("never supplied:", sorted(consumed - produced - START))
print("never used:", sorted(produced - consumed))It prints:
never supplied: ['bait']
never used: ['fish']The result shows that fish is cut off from the rest of the loop. Nothing gives the player bait, and nothing uses the fish. Either the game needs more verbs (a way to get bait, a way to use fish), or fish belongs to a different loop, or it should be removed. The core farming chain passes the check because every item it produces is consumed by a later verb, and every item it consumes is either produced or in the starting set.
This check is crude. It cannot tell you whether the loop is fun, and it ignores timing, risk, and skill. It does catch structural faults early, before you build anything.
Common faults in a loop
Orphan verbs. A verb that connects to nothing, like fish above. Players may use it once and drop it, or it may clutter the controls.
Dead ends. A verb whose output nothing consumes. Dead ends are acceptable when they are deliberate, such as a score or a cosmetic purchase. They are a fault when the player thinks the output matters.
Unsupplied inputs. A verb that needs something the player cannot get. This blocks progress and is usually a bug in the economy and not a design choice.
A dominant verb. One verb is so much better than the others that the player repeats it and ignores the rest. The loop then collapses to a single action. A related case is a "degenerate strategy": a repeatable trick that earns rewards with little risk or thought.
No sink. Every pass produces a resource and nothing removes it. Gold piles up, and the player's choices stop mattering because they can afford everything. A loop usually needs somewhere for resources to go: purchases, upkeep, repairs, or a cost that scales.
No variation between passes. The state after each pass looks like the state before it, so the player's intent never changes. The loop becomes a chore. Variation can come from the environment (new levels), from the opponent (new enemies), or from the player's growing options (new verbs or new targets for old verbs, which later chapters cover).
Loops without resources
Not every loop trades items. In Tetris nothing is bought or sold. The state is the board, each verb changes it, and the next piece is a new problem. The loop closes through the board: clearing lines makes room, which lets the player keep going. The consume-and-produce model still applies if you treat "board space" and "falling piece" as the things being traded. When you meet a game with no obvious resources, ask what state the verbs change and what new state they create for the next verb.
Narrative and puzzle games follow the same rule with different material. In an adventure game, the loop might be examine, collect, combine, and talk. The things consumed and produced are clues and items, and the gate to progress is knowledge.
A procedure for finding a loop
To find the core loop of a game you are studying or designing:
- Play for ten minutes, or review a recording, and note every verb you use.
- Count how often you use each. The verbs you use constantly are loop candidates.
- For each candidate, write what it needs and what it gives.
- Link verbs where one gives what another needs. Look for a cycle.
- Mark verbs with no links. Decide whether each is an orphan, a dead end, or part of another loop.
- Repeat at a longer time scale to find the meso and macro loops.
What comes next
This chapter showed that a loop's size is set by how many verbs it needs. The next chapters ask how many verbs a game should have and how to describe each one precisely enough to build and test it.
Exercise
A game has these verbs. "Mine" needs a pickaxe and gives ore. "Smelt" needs ore and gives bars. "Craft" needs bars and gives a pickaxe. "Trade" needs bars and gives gold. Nothing in the game uses gold. Which verbs form a closed loop, and what is the fault?
Show answer
Mine, smelt, and craft form a closed loop, because craft produces the pickaxe that mine needs. Trade is a dead end: it produces gold, and nothing consumes it. Either gold needs a use (a sink such as buying upgrades), or trade should be removed or redesigned. Note also that the starting state must include a first pickaxe, or the loop cannot begin.
Exercise
Pick a game you know well. List its verbs for the micro loop (seconds) and for the meso loop (minutes). Name one verb that appears at both scales and say what job it does at each.
Show answer
Answers vary. A sample for Super Mario Bros.: the micro loop is run, jump, land. The meso loop is reach the flag, enter the next level. Jump appears at both scales. In the micro loop it crosses gaps and avoids enemies. In the meso loop it reveals secrets and chooses between routes. A good answer names the specific job at each scale and does not just repeat the verb's name.
Exercise
In the Python loop checker, you add a verb "gift": ({"produce"}, set()). The checker reports nothing new. Is this a fault, and how would you decide?
Show answer
The checker reports nothing because gift consumes produce, which is already produced, and it produces nothing, so it adds no unused output. Whether it is a fault is a design question. If gifting is meant to be a sink that takes goods out of the economy, it is fine. If it competes with sell and always gives less, it is a verb the player will never choose, which a playtest or a comparison of rewards would reveal.