Sub topic 5
Scarcity: limited resources force decisions
This chapter assumes you know the idea of opportunity cost from earlier in the tutorial: every choice gives up the best alternative you did not take. It also assumes you know what a resource is in game terms (gold, health, time, space, turns) and can read short Python. Here we look at the mechanism that produces opportunity cost in most games, which is scarcity.
What scarcity is
A resource is scarce when the player cannot have everything they want from it. Scarcity is a relationship between two numbers: how much the player wants to do, and how much the resource allows. If a player has 50 gold and the shop sells 100 gold of useful items, the gold is scarce. If the shop only sells 40 gold of useful items, the gold is not scarce, because nothing has to be given up.
Scarcity does not make a choice meaningful by itself. It creates the pressure. Opportunity cost, trade-off axes and uncertainty then decide whether that pressure leads to an interesting decision or only to frustration.
A useful working definition: a resource is scarce when the player's wishlist costs more than their budget.
Where scarcity shows up
Designers often think of scarcity as "money", but most games run several scarce resources at once.
| Resource type | Example | What the player gives up |
|---|---|---|
| Currency | Gold, credits, crafting materials | Other purchases |
| Time | Turn limits, day counters, timers | Other activities in the same window |
| Actions | Action points, one move per turn | Other moves this turn |
| Space | Inventory slots, deck size, a board tile | Other items, cards or buildings in that space |
| Health or durability | Hit points, weapon wear | Safety later, in return for power now |
| Attention | Several threats at once | Watching one thing while another goes unwatched |
| Opportunity | A one-time offer, a limited unit cap | Taking the offer another way |
Time and space deserve a note. They are scarce even when nobody labels them as resources. A deck-building game usually has no "deck slot" currency, yet a 30-card deck limit makes every card compete with every other card. Many of the best scarcity designs work this way, because the limit is simple and the player can read it at a glance.
How scarcity creates decisions
Scarcity turns "what do I want?" into "what do I want most?". Three conditions need to hold for that shift to produce a real decision:
- At least two options are worth wanting. If only one item is worth buying, the player has no choice to make. They just buy it.
- The options compete for the same resource. If the sword costs gold and the potion costs a separate potion token, they do not compete.
- The player cannot afford everything. If they can, the budget does not bind and the decision disappears.
Checking these three conditions on a design is more reliable than asking whether it "feels tense".
Measuring scarcity
You can estimate how scarce a resource is with a scarcity ratio:
scarcity ratio = total cost of everything worth buying / the player's budget
- A ratio near 1.0 or below means the player can afford nearly everything. Choices are weak.
- A ratio from about 1.5 to 3 means the player gets a meaningful share of what they want and must leave the rest.
- A ratio of 5 or more means the player can afford only a sliver. Choices may feel arbitrary, because nothing they buy feels like it matters.
These numbers are rough starting points, not rules. The right ratio depends on how much each purchase changes the game, how often the player shops, and whether the player can come back later.
The ratio ignores a second factor, which is how many different bundles fit in the budget. A set of items can have a high ratio and still offer only one sensible bundle. The following code counts the maximal bundles: the combinations that fit in the budget and have no room to add another item.
from itertools import combinations
def scarcity_ratio(costs, budget):
"""Total price of everything on offer divided by the budget."""
return sum(costs.values()) / budget
def maximal_bundles(costs, budget):
"""Affordable bundles that cannot be extended with any other item."""
names = list(costs)
affordable = []
for size in range(len(names) + 1):
for combo in combinations(names, size):
if sum(costs[name] for name in combo) <= budget:
affordable.append(frozenset(combo))
return [
bundle for bundle in affordable
if not any(bundle < other for other in affordable)
]
shop = {"Sword": 30, "Shield": 25, "Potion": 10, "Map": 15, "Boots": 20}
for budget in (50, 100):
bundles = maximal_bundles(shop, budget)
print(
f"budget={budget} ratio={scarcity_ratio(shop, budget):.1f} "
f"distinct full bundles={len(bundles)}"
)
# budget=50 ratio=2.0 distinct full bundles=6
# budget=100 ratio=1.0 distinct full bundles=1At a budget of 50, the player faces six different "best fills" of their budget, such as Sword and Boots, or Shield, Map and Potion. At a budget of 100 there is exactly one, so the shop is a checkout rather than a decision. The code enumerates all subsets, so it only suits small item lists. Past about 20 items you would need a smarter method, but a designer's shop rarely needs that, and a spreadsheet check is often enough.
Faucets and sinks
Resources in most games flow in and out through two kinds of mechanism:
- Faucets add resources: enemy drops, quest rewards, income per turn, resource nodes.
- Sinks remove resources: shop purchases, repair costs, upkeep, ammunition.
Scarcity is the result of balancing these two. If faucets outrun sinks, the player accumulates and the resource stops being scarce. If sinks outrun faucets, the player is always short and may stop trusting the system.
Think about the stock, not only the flow. A player who has 5,000 gold in the bank does not feel scarcity on a 100 gold item, even though income is only 20 gold per level. Banked resources are the most common reason scarcity quietly vanishes late in a game.
flowchart TDThe block above would be invalid, so here is the real diagram.
Making scarcity tense without making it arbitrary
Scarcity can feel unfair when the player cannot see why their budget is what it is. Three habits help.
Let the player see the prices. If players can see costs and their own budget before committing, the trade-off becomes a puzzle they can reason about. Hidden prices turn it into guessing.
Keep the limit steady. If the player's budget is 50 now, they should be able to predict roughly what it will be next time. Wild swings make planning impossible, so players stop planning and pick whatever is nearest.
Scale scarcity with power. If prices stay the same while income grows, later choices become trivial. Many games raise costs, add new sinks or unlock new options as the player grows, so that the wishlist keeps outrunning the budget.
Common failure modes
Hoarding. Players save a resource "for later" and never spend it, because they fear a better use might appear. Hoarding signals that the player cannot judge future value. Fixes include telling the player what is coming, making resources expire or cap, or giving spending a clear short-term benefit.
Fake scarcity. The game forces a limit that the player can lift with a trivial action, such as grinding for 10 minutes. The tension is gone and only the tedium remains. If a limit can be bought out cheaply, it is not doing design work.
One resource that does everything. If gold buys weapons, armor, healing, and progress, then every option is measured in the same unit and the player drifts toward whichever item gives the best return per gold. Using several resources with different uses creates more varied decisions.
Scarcity on a dominated option. If one item is simply better than another at the same price, the budget limit never creates a trade-off, because everyone buys the better item. Scarcity needs options that are comparable but different. The next chapters cover this with dominant and dominated options.
Death spirals. When the resource is health or money, a player who falls behind may lose the ability to recover. Some of this is fine in a strategic game. In others it makes early mistakes feel final. A common remedy is to give a trailing player extra resources or cheaper recovery, which is called rubber banding. It has its own cost, because it can make the lead feel pointless.
Edge cases
- Resources that convert. If players can trade gold for time (buying a shortcut) or time for gold (grinding), the two resources are linked by an exchange rate. That rate becomes a hidden price on everything. Check it when tuning.
- Renewable limits. A turn-based action budget refreshes each turn, so each choice feels small but repeated. A one-time budget feels heavy. Both can be good, but they produce different moods, so choose on purpose.
- Shared scarcity in multiplayer. When several players compete for the same pool, such as a limited number of tiles or a single prize, scarcity also depends on what opponents do. This adds information and timing problems that single-player budgets do not have.
- Soft versus hard limits. A hard limit says "you cannot". A soft limit says "you can, but it costs more". Soft limits, such as rising prices for each extra unit, preserve a choice even at the boundary.
Summary of what to check
When you review a design for scarcity, ask:
- Which resources actually limit the player, and which are never used up?
- What is the scarcity ratio for the main decision points?
- How many distinct good bundles fit the budget?
- Are there faucets or banked stock that remove the limit later?
- Can the player see the limit and plan around it?
Exercise
A shop sells four items costing 10, 20, 30 and 40 gold, all useful. The player earns exactly 100 gold before each visit and cannot save it. What is the scarcity ratio, and does the player face a real decision? What would you change if you wanted more tension?
Show answer
The total cost is 10 + 20 + 30 + 40 = 100, so the ratio is 100 / 100 = 1.0. The player can buy everything, so the budget never binds and there is no decision. To add tension, raise prices or lower income until the ratio is about 1.5 to 3. For example, a budget of 60 gives a ratio of about 1.7, and the player must leave something out, such as the 40 gold item or the 10 and 20 gold items together with a 30 gold item they can no longer fully add.
Exercise
A player in a late-game role-playing game has 8,000 gold in the bank and earns 50 gold per quest. The best shop item costs 300. Explain why scarcity has disappeared even though income looks low, and name two design changes that would restore it.
Show answer
Scarcity depends on the stock as well as the income. With 8,000 banked gold, the player can afford about 26 of the most expensive items, so the budget does not bind. Two possible fixes are to add a high-cost sink that matches the stock (for example, a top-tier item costing several thousand gold), and to add upkeep or a gold cap so that hoarded resources lose value.