Sub topic 8
Player interaction patterns: competitive, cooperative, and others
This chapter assumes you have read the chapters on players, objectives, and rules. You should be able to say how many players a game has and what each one is trying to achieve. You do not need to run the code, but the examples are in Python and use the Nim model from earlier in the tutorial.
What an interaction pattern is
A player interaction pattern describes how one player's choices affect the other players' chances of reaching their objectives. It is a property of the game's structure. It is not a property of the mood at the table, the theme, or the art.
The pattern comes from two formal elements working together:
- The objectives decide whose success depends on whose.
- The rules decide what one player is allowed to do to another, and what information and resources are shared.
If you want to name the pattern of a game, ask this question: when player A gets closer to their objective, what happens to player B's distance from theirs?
The main patterns
The table lists the patterns you will meet most often. Each is defined by how objectives relate to each other.
| Pattern | Objective relationship | Typical result | Example |
|---|---|---|---|
| Competitive (zero-sum) | One player's gain is another's loss | One winner, the rest lose | Chess, Nim |
| Competitive (multiplayer race) | Each player has a separate goal of the same kind | One player finishes first | Racing games, Ludo |
| Cooperative | All players share one objective | All win or all lose | Pandemic, Hanabi |
| Team competitive | Players on a team share an objective, and teams oppose each other | One team wins | Bridge, most team sports |
| Solitary | A single player, or players who never affect each other | Player beats the game's own challenge | Solitaire |
| Unilateral (one against many) | One player opposes a group that shares an objective | One side wins | Fury of Dracula, Scotland Yard |
| Semi-cooperative | Shared threat plus private goals | Some win, some lose, or all lose | Betrayal-style games, Dead of Winter |
Competitive play
In a competitive game, at least some of the players' objectives cannot all be satisfied at once. In Nim, only one player can take the last stone, so the objectives are strictly opposed. A game with this property is zero-sum: whatever one player gains, the others lose in equal measure.
Not every competitive game is zero-sum. In a race game, your progress does not reduce mine directly. We both move forward, and the objectives conflict only because only one of us can finish first. Racing games have indirect interaction. Chess has direct interaction, because you can capture my pieces.
Cooperative play
In a cooperative game, the players share one objective, and the game itself supplies the opposition. That opposition is usually a set of rules that the game runs on its own, often called a game system or automated opponent. Because all players win or lose together, one player's progress is every player's progress.
The formal change from competitive play is small. In Nim, if both players shared the objective "empty the pile in a way that we both agree is fine," the game would stop being a game, because no choice would matter. Cooperative games need a source of challenge. The challenge usually comes from rules that add pressure each turn, such as new threats appearing, resources running out, or a clock.
Team and unilateral play
Team games mix both patterns. Inside a team, the pattern is cooperative. Between teams, it is competitive. When you analyze a team game, name the pattern at each level separately.
Unilateral games give one player a different role and different rules from everyone else. The roles are asymmetric: the players do not have the same objectives, abilities, or information. This matters for the analysis, because you must write one objective and one rule set for each role.
Semi-cooperative play
In a semi-cooperative game, there is a shared threat that everyone must handle, but each player also has a private objective that can conflict with other players' private objectives. Players have to decide whether to help the group or to pursue their own goal. This tension drives the design.
Direct and indirect interaction
Pattern is only one axis. A second axis is whether a player's actions touch other players directly.
- Direct interaction: a move can change another player's position, resources, or options. Examples are capturing a piece, stealing a card, or blocking a path.
- Indirect interaction: players affect each other only through shared resources or through the order in which they act. Examples are claiming a spot on a shared board before another player can, or buying the last copy of an item.
- No interaction: players cannot affect each other at all, and the game is a set of parallel solo puzzles scored at the end.
You can combine the two axes. A cooperative game can have direct interaction, because one player can move another player's piece to help them. A competitive game can have almost none, as in a scored puzzle contest.
Seeing the pattern in the Nim model
The Nim code from earlier chapters already encodes the interaction pattern. Look at the winner function.
from dataclasses import dataclass
PLAYERS = 2
MAX_TAKE = 3
@dataclass(frozen=True)
class State:
stones: int
current: 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(state.stones - take, (state.current + 1) % PLAYERS)
def winner(state):
# objective: take the last stone
if state.stones == 0:
return (state.current - 1) % PLAYERS
return Nonewinner returns a single player index. That means exactly one player achieves the objective, so the objectives are opposed. The pile is also a shared resource. Each stone you take is a stone the other player cannot take, so the interaction is direct in effect, even though no player touches another's pieces.
The pattern is a consequence of the return value. If winner instead returned a set of player indexes, several players could win together.
Changing the pattern by changing the objective
You can turn the Nim model into a cooperative game by changing only the objective. The players, the pile, and the rules stay the same. Here the pair wins together if the pile is emptied within a turn limit.
from dataclasses import dataclass
PLAYERS = 2
MAX_TAKE = 3
TURN_LIMIT = 4
@dataclass(frozen=True)
class State:
stones: int
current: int
turns: int = 0
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(state.stones - take, (state.current + 1) % PLAYERS, state.turns + 1)
def team_result(state):
# shared objective: empty the pile before the turn limit
if state.stones == 0:
return 'both players win'
if state.turns >= TURN_LIMIT:
return 'both players lose'
return None
state = State(10, 0)
while team_result(state) is None:
state = apply_move(state, min(MAX_TAKE, state.stones))
print(team_result(state))With a pile of 10 and a turn limit of 4, the best the team can do is take 3, 3, 3, then 1. The output is both players win. With a pile of 13, the same loop ends with both players lose, because four turns can remove at most 12 stones.
Two things changed besides the winner. First, the choice "which move is good" is no longer about the opponent. The best move is simply the largest one. Second, the challenge now comes from the turn limit, which is a rule. This shows the point made earlier: cooperative games need pressure from the rules, because the objectives no longer supply opposition.
How rules shape interaction
The same objectives can give different interaction depending on the rules. Four rule types control most of the variation.
- Communication rules. Can players talk, trade, or negotiate? A game that allows open negotiation encourages alliances. A game that forbids talking removes them.
- Information rules. What does each player know? Hidden information creates bluffing in competitive games and trust problems in cooperative ones.
- Targeting rules. Can a player choose which opponent to attack? If yes, a leading player may be attacked by everyone else.
- Turn structure. Do players act in turn, or at the same time? Simultaneous action reduces direct reaction and tends to increase indirect interaction.
Common problems
- Kingmaking. In a game with three or more players and a competitive objective, a player who cannot win may still decide who does, by choosing whom to help or hinder. The rules gave that player a decision with no stake in the result.
- Gang-up on the leader. If targeting is free, players attack whoever is ahead. This works as a rubber band that keeps scores close, but it can punish skill.
- The alpha player. In a cooperative game with open information, one experienced player can tell everyone else what to do, which turns the others into pieces. Hidden information or limited communication prevents this.
- Unwinnable cooperative setups. If the automated opposition is too strong, all players lose regardless of choices. If it is too weak, no pressure exists. The balance has to be tested.
- Unclear pattern. A game that says "work together" but has private win conditions confuses players about whether to trust each other. State the pattern in the objective itself.
Checking your classification
When you analyze a game, work through these steps in order.
- List each player role and write its objective as a testable statement.
- Compare the objectives. Are they identical, opposed, or partly overlapping?
- Read the rules for what one player can do to another. Mark each as direct or indirect.
- Record the communication and information rules.
- Name the pattern, and note any second pattern at a different level, such as team inside competitive.
Write the result in one sentence, for example: "Two-player, zero-sum, direct interaction through a shared pile, perfect information, alternating turns."
Exercise
A game for four players has one board and one shared threat: a monster advances each round, and if it reaches the village, everyone loses. Each player also draws a secret card at the start. If the monster is defeated, the player whose secret card shows the most gold wins alone. Name the interaction pattern and explain which formal elements produce it.
Show answer
The pattern is semi-cooperative. The shared threat and the shared loss condition (the monster reaching the village) create a cooperative objective, because every player has a reason to defeat the monster. The secret cards create private objectives that compete, because only one player wins if the monster is defeated. The pattern comes from the objectives (shared plus private) and from the hidden information rule, which stops players from knowing who is working against whom.
Exercise
In the cooperative Nim model, the turn limit is 4 and MAX_TAKE is 3. What is the largest starting pile the team can empty, and what change to a single constant would let a pile of 15 be emptied?
Show answer
The largest pile is 12, since four turns remove at most 3 stones each. Raising TURNLIMIT to 5 lets the team empty a pile of 15, because five turns at 3 stones each remove exactly 15. Raising MAXTAKE to 4 would also work, since four turns at 4 stones remove 16.