Sub topic 2
Players: How Many, in What Roles, and Why They Take Part
Start with the player model
Assume you know common board, card, or video games and can read simple Python. This chapter treats a game as a system. Theme and story may explain why players act, but the formal player model explains who can act, when they can act, and how their choices affect one another.
A player is a participant whose decisions can change the game state. The game state is the information that describes the current condition of the game, such as whose turn it is, which pieces remain, or how many points each player has.
Record these details:
- Player count: how many participants the game supports.
- Roles: what distinct responsibilities or abilities participants have.
- Turn structure: when each participant may act.
- Interaction pattern: whether participants compete, cooperate, negotiate, or mostly act independently.
- Information access: what each participant can see or know.
A player count is not always the same as the number of people in the room. In a team game, four people may control two teams. In a solo game, one person may make decisions against an automated opponent.
| Player model | Typical structure | Design consequence |
|---|---|---|
| Two opposing players | Each player tries to improve their own result | Every useful action may also deny the opponent |
| Cooperative group | Players share an objective and often a result | Communication and coordination become central |
| Teams | Players act for a group result | Individual choices must support team strategy |
| Player versus system | A person acts against rules or automation | Difficulty and feedback replace another human's choices |
Roles and interaction
A role is a defined position with specific actions, information, or goals. Roles can be symmetrical, where all players have the same capabilities, or asymmetrical, where players have different capabilities.
Chess uses symmetrical roles at the player level. Both players control pieces under the same basic rules. In a hidden-role game, players may have different identities and private objectives. In a cooperative game, one player might control movement while another manages resources.
Roles should change decisions, not merely rename participants. If a “medic” and a “scout” have identical actions and information, the roles add presentation but little formal structure.
Interaction describes how one player's decisions relate to another player's decisions:
- Direct competition lets one player block, damage, or outscore another.
- Cooperation gives players a shared objective or shared resources.
- Negotiation allows promises, trades, or agreements.
- Parallel play lets players make decisions with limited effect on one another.
- Teams combine individual decisions into a group result.
Turn order is part of this interaction. Alternating turns create a predictable response pattern. Simultaneous turns create uncertainty because players choose without seeing the current choices of others.
Model player turns precisely
A turn procedure is the ordered method a player follows. It should state who acts, what choices are available, and when control passes to another player.
from dataclasses import dataclass
@dataclass(frozen=True)
class Player:
name: str
role: str
players = [
Player("Ava", "builder"),
Player("Ben", "builder"),
Player("Cy", "builder"),
]
def next_player(current_index, player_count):
return (current_index + 1) % player_count
current = 0
for turn in range(5):
player = players[current]
print(f"Turn {turn + 1}: {player.name} ({player.role})")
current = next_player(current, len(players))The modulo operation wraps the index from the last player back to the first. This is an operational rule: it determines the sequence of turns. It is different from the objective, which states what players are trying to achieve.
Check the player model
When analyzing a game, ask:
- Who can make decisions?
- Does each player have the same information and abilities?
- What can one player's action change for another player?
- Is the interaction direct, cooperative, negotiated, or mostly independent?
- Does the turn order create meaningful advantages or disadvantages?
Exercise
A game supports four participants. Two participants share one score and the other two share a second score. What player model should you record?
Show answer
Record four participants organized into two teams, with each team pursuing a shared result. Also record the team-based interaction pattern and any rules that determine communication or turn order.