Sub topic 10
Conflict: where objectives, rules, and resources collide
This chapter assumes you can already name a game's players, objectives, rules, and resources, and that you can read short Python. Earlier chapters defined each element on its own. Here we look at what happens when they meet. In formal terms, conflict is the situation in which pursuing an objective runs into something that resists it: another player's objective, a rule that blocks a move, or a resource that is too scarce to cover every want.
Conflict is not the same as fighting. A solo puzzle has conflict, because the rules resist the player's objective. A cooperative game has conflict, because the team's resources cannot cover everything it needs. Conflict is a property of the structure, not of the theme.
Three sources of conflict
Each conflict traces back to one of three formal elements pushing against an objective.
| Source | What resists the objective | Example |
|---|---|---|
| Objective vs. objective | Another player (or the game itself) wants an incompatible outcome | Two players both need to take the last stone |
| Objective vs. rule | A rule makes the direct route illegal or costly | A rule limits you to 3 stones per turn |
| Objective vs. resource | There is not enough of something you need | You need three actions but get only two per turn |
The sources combine. In most games, you can ask of any frustrating moment which of the three produced it. That question is the starting point of the analysis in the final chapter.
Objective against objective
Interpersonal conflict appears when two players' objectives cannot both be satisfied. In a zero-sum game, one player's gain is exactly the other's loss. Nim is zero-sum: exactly one player takes the last stone. Chess is zero-sum. In a non-zero-sum game, outcomes can be good for both players or bad for both. Many cooperative and negotiation games work this way.
You can detect objective conflict by a simple test. Write each player's objective as a testable condition. If both conditions can be true at the same moment, the objectives are compatible. If not, they conflict.
def winner(state):
# objective: take the last stone
if state.stones == 0:
return (state.current - 1) % 2
return NoneOnly one player index can be returned, so the two players' win conditions cannot both hold. The conflict is built into the return type.
Objective against rule
Rules create obstacles: they remove the shortest path to the objective. Without the take limit, the first player in Nim would take the whole pile and win immediately. The limit of three turns a trivial game into a puzzle. Designers add rules mainly to create this kind of resistance, because a goal with no resistance is not interesting to pursue.
Rules also differ in how they resist. A hard rule forbids a move outright. A soft rule allows the move but attaches a cost, such as a penalty or a lost turn. Hard rules shape the set of legal moves. Soft rules shape the price of each move.
Objective against resource
When resources are limited, the player must choose. Spending a resource on one goal means it is unavailable for another. This is internal conflict: it happens inside a single player's decision, even with no opponent. The chapter on resource dynamics covered scarcity and trade-offs. Here the point is narrower: scarcity is one of the three places where conflict is produced.
Seeing conflict in the Nim model
The model from earlier chapters is small enough that all three sources are visible in the code. The state holds the resource, the rule is the move generator, and the objective is the winner test.
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):
if state.stones == 0:
return (state.current - 1) % PLAYERS
return None
def count_choices(state):
return len(legal_moves(state))
for stones in (10, 3, 2, 1):
s = State(stones, 0)
print(stones, "stones ->", count_choices(s), "legal moves")Running this prints:
10 stones -> 3 legal moves
3 stones -> 3 legal moves
2 stones -> 2 legal moves
1 stones -> 1 legal movesAs the pile shrinks, the rule has fewer moves to allow, so the player's freedom narrows. Near the end, the resource itself constrains the rule. This is conflict between a rule and a resource, which neither element shows when examined alone.
Conflict changes over the course of play
Conflict is not constant. Early in a game, resources are plentiful and the conflict is mild. As resources run down and the objective gets closer, the pressure rises. Designers shape this on purpose.
Not every game follows this curve. Some games peak in the middle and then resolve, because one player has pulled ahead. Others stay flat. The shape you see is a result of how the elements interact. If you want a different shape, you change an element.
Conflict type and player interaction
The three sources connect to the interaction patterns from the previous chapter. The same source can appear under different patterns.
- Competitive games rely mainly on objective-against-objective conflict, supported by rules and scarce resources that force opponents into contact.
- Cooperative games replace player-against-player conflict with player-against-system conflict. The game's rules and resource limits act as the opponent. The team's objective is shared, so the resistance must come from rules and scarcity.
- Solitaire games rely on rule and resource conflict alone.
This explains a common design failure. A cooperative game with generous resources and weak rules has almost no conflict, so players feel no tension and lose interest. Adding resistance means tightening a rule, shrinking a resource, or adding a system-controlled objective such as a threat that advances each turn.
Changing the objective changes the conflict
To see how the elements interact, change one of them and see what moves. In the misère version of Nim, the only change is the objective: whoever takes the last stone loses.
def winner_misere(state):
# objective changed: whoever takes the last stone loses
if state.stones == 0:
return state.current
return NonePlayers, rules, and resources are untouched. Yet the best moves change. In normal Nim, a good player wants to leave a multiple of four stones. In misère Nim, the target shifts: you want to leave one more than a multiple of four, so the opponent is forced toward the last stone.
We can check this with a short search that finds the winning player under optimal play. The function below works for either objective, which makes the comparison direct.
from functools import lru_cache
MAX_TAKE = 3
@lru_cache(maxsize=None)
def current_player_wins(stones, misere):
# True if the player to move can force a win.
if stones == 0:
# Normal: the previous player took the last stone and won, so mover loses.
# Misere: the previous player took the last stone and lost, so mover wins.
return misere
for take in range(1, min(MAX_TAKE, stones) + 1):
if not current_player_wins(stones - take, misere):
return True
return False
for n in range(1, 10):
normal = current_player_wins(n, False)
misere = current_player_wins(n, True)
print(n, "normal:", normal, "misere:", misere)The output shows that the positions where the first player loses differ between the two objectives. In normal Nim they are 4 and 8. In misère Nim they are 5 and 9, and also 1, since a player facing a single stone must take it and lose. One edit to the objective moved the entire pattern of good and bad positions.
Common errors when analyzing conflict
Intermediate designers tend to make the same mistakes. Watch for these.
- Equating conflict with opposition between players. Conflict can come from rules and resources alone. If you only look for opponents, you will miss the main source of tension in cooperative and solo games.
- Adding conflict by adding rules. Piling on rules usually adds complexity, not tension. Resistance that comes from one clear scarcity is often stronger than five exceptions.
- Confusing a hard-to-use interface with conflict. Difficulty that comes from a confusing presentation is friction, not formal conflict. Formal conflict is part of the decision, not the interface.
- Leaving objectives compatible by accident. If two players' objectives can both be met, the game may collapse into parallel play with no pressure. Test with the "can both be true?" check.
- Ignoring that conflict shifts. A game that has strong conflict at move five may have none at move thirty if resources have run out or one player is far ahead. Examine several points in play, not one.
A short procedure for locating conflict
Use this sequence on any game you are studying.
- Write each player's objective as a testable condition.
- Check whether the conditions can hold together. If not, record an objective conflict.
- List the rules that make the direct route illegal or costly. Record each as a rule conflict.
- List the resources the objective needs and compare them to the supply. Record each shortage as a resource conflict.
- Note how each of these changes from the opening to the end of play.
The diagram also shows why conflict leads to the next topic. The outcome of a game is what results when the conflict is resolved, so the next chapters on boundaries and outcome build directly on this one.
Exercise
In a cooperative game, four players share one objective: escape a collapsing building before a timer reaches zero. Each player gets two actions per turn, and the timer drops by one each round. Name the sources of conflict, and say what you would change to raise the tension without adding a rule.
Show answer
There is no objective-against-objective conflict between players, since the objective is shared. The conflict comes from resources (only two actions per player per turn, and a limited timer) and from the rule that fixes the action count. The timer acts as a system opponent. To raise tension without adding a rule, change a resource: reduce actions to one for some players, shorten the timer, or make the route to the exit require more actions in total. Each change tightens scarcity and leaves the rule set the same.
Exercise
Using the current_player_wins function, predict whether the first player wins misère Nim with 6 stones, then explain the move that wins.
Show answer
The first player wins. From 6 stones, taking 1 leaves 5, and 5 is a losing position for the player to move in misère Nim (one more than a multiple of four). Whatever the opponent takes (1, 2, or 3), the first player can respond so that the pile returns to 1 more than a multiple of four, which eventually forces the opponent to take the final stone.