Sub topic 5
Resources: The Assets Players Gain, Spend, and Protect
What counts as a resource?
Assume you know basic game design terms and can read simple Python. In a formal game model, a resource is an asset whose amount, location, or availability affects what players can do or achieve. A resource can be something players own, something they compete over, or something the whole game state contains.
Common examples include:
- Money used to buy buildings.
- Action points used to perform actions.
- Cards held in a player's hand.
- Health lost during combat.
- Territory that provides income or blocks movement.
- Time remaining before a round ends.
- Stones in a shared pile.
A resource does not need to look valuable in the game's theme. Its formal role comes from how the rules connect it to actions and objectives. In a space game, fuel may be a resource. In a farming game, seeds, land, and water may be resources. In a puzzle game, the remaining moves may be the most important resource.
Resources often have these properties:
| Property | Question to ask | Example |
|---|---|---|
| Owner | Who controls it? | A player's hand of cards |
| Supply | Is it limited or renewable? | A finite deck |
| Flow | How is it gained or lost? | Coins earned from selling goods |
| Use | What can it enable or prevent? | Energy spent on an attack |
| Value | How does it support an objective? | Points toward victory |
Resource flows
To analyze a resource, describe its complete flow:
- How does a player or the game create or receive it?
- Where is it stored?
- What actions spend, transfer, or convert it?
- What happens when it reaches zero?
- Can another player take or affect it?
A resource can be private, such as cards in a player's hand, or shared, such as a market or a pile of stones. It can be finite, such as a fixed deck, or renewable, such as income generated each round. It can also be converted. For example, a player might spend wood to build a house, converting one resource into a permanent position or ability.
Scarcity creates decisions. If a player has more resource than needed, spending it may be obvious. If the resource is limited, every use creates an opportunity cost. An opportunity cost is the benefit lost when one choice prevents another choice.
A small formal model
Nim uses one shared resource: a pile of stones. The players do not own the stones. Instead, they compete to control the final state of the pile. Each turn allows a player to remove one to three stones.
from dataclasses import dataclass
MAX_TAKE = 3
PLAYERS = 2
@dataclass(frozen=True)
class State:
stones: int
current_player: int
def legal_moves(state):
return list(range(1, min(MAX_TAKE, state.stones) + 1))
def apply_move(state, take):
if take not in legal_moves(state):
raise ValueError("illegal move")
return State(
stones=state.stones - take,
current_player=(state.current_player + 1) % PLAYERS,
)
def play(stones, choose_move):
state = State(stones, 0)
while state.stones > 0:
state = apply_move(state, choose_move(state))
return state.current_player # the player who moves nextThe stones field is the resource state. The legal moves describe how players spend it. When the pile reaches zero, the objective determines whether the player who took the last stone wins or loses.
Common modeling errors
Do not list every visible object as a resource. A decorative tree is not a resource unless players can use it or rules make it affect play. Do not confuse a resource with a score. A score is usually an outcome measure, while a resource is something that can change future choices, although some games use victory points as a spendable resource.
Also record timing. A resource gained at the end of a round cannot necessarily be used during that round. State whether resources are hidden, whether they can be transferred, and whether their value changes as the game develops.
Exercise
In Nim, what is the resource, who controls it, and what makes it scarce?
Show answer
The resource is the shared pile of stones. No player owns it, but the current player controls how many stones to remove. It is scarce because the pile only decreases and eventually reaches zero.