Sub topic 3
Player Interaction Patterns, Resources, Conflict, Boundaries, and Outcomes
This chapter assumes you can name the four formal elements (players, objectives, rules, and resources) and that you can read basic Python. You will use these ideas to describe how a game's structure shapes what players do.
Player interaction patterns
Interaction patterns describe how players affect each other's results. In a competitive game, one player's gain is another's loss. In a cooperative game, the players share a single result. Many games mix the two, such as team games where teams compete against each other.
Resource dynamics
Resources are scarce when there is not enough to satisfy every player's needs. Each choice to spend a resource on one goal leaves less for another, which creates a trade-off. Conversion rules set how one resource becomes another, and they determine which trades are worth making.
Conflict
Conflict occurs where objectives, rules, and resources compete. Two players may want the same scarce resource, or a rule may block the fastest route to an objective. Designers locate conflict to decide where players must make hard choices.
Boundaries
Boundaries define where the game starts and ends. Rules set the playing area, the time limit, and the actions that count. Anything outside those limits does not affect the game.
Outcome
An outcome is the result the rules produce when the game ends. The objective determines who wins, and the rules determine when the game stops. A clear outcome rule makes the result of every game unambiguous.
Analyzing and modifying a game
To analyze a game, list its players, objectives, rules, and resources, then ask how changing one element affects the others. The following function checks a scoring rule under two interaction patterns:
def payouts(scores, mode):
total = sum(scores.values())
if mode == "competitive":
best = max(scores.values())
return {p: (1 if s == best else 0) for p, s in scores.items()}
if mode == "cooperative":
win = total >= 10
return {p: (1 if win else 0) for p in scores}
raise ValueError("unknown mode")
print(payouts({"ann": 6, "ben": 4}, "competitive"))
print(payouts({"ann": 6, "ben": 4}, "cooperative"))Exercise
In the code above, if ann has 3 and ben has 3 under cooperative mode, what does payouts return?
Show answer
The total is 6, which is below 10, so win is False and the function returns {'ann': 0, 'ben': 0}.