Games for two
What a game is, how to read a bimatrix and what a Nash equilibrium is, with the prisoner’s dilemma, the stag hunt and chicken.
This semester I am taking Game Theory in the PhD in Social Complexity Sciences. I come from architecture and game design, so the word “game” was familiar, although in this field it has a more precise meaning. I am writing these notes to put what I learn in order, and in case they are useful to someone else. They are a personal synthesis, not course notes, and at the end of each one I list the sources the ideas come from.
What a game is
For game theory, a game is any situation in which what happens to each person depends on what they decide and also on what others decide. A football match fits that definition, but so does a salary negotiation, two corner shops in the same neighbourhood setting prices, or a group of neighbours who need to agree on looking after a square.
Describing a game takes three things: who plays, what each one can do, and what each one gets from every combination of decisions. That last part is called the payoffs. They can be money, months in prison, points or any other measure of how well someone does.
The bimatrix
The best-known example is the prisoner’s dilemma. The police arrest two suspects, Patricio and Claudio, and question them in separate rooms. They have enough evidence to convict them of a minor offence but not of the main one, so each is offered a deal: betray the other and walk free. If neither betrays, both spend a month in prison for the minor offence. If one betrays and the other stays silent, the one who betrayed goes free and the silent one gets nine months. If they betray each other, six months each.
Since both decide at the same time and each has only two options, the game fits in a table. The rows are Patricio’s options, the columns are Claudio’s, and each cell holds two numbers: first the payoff to whoever picks the row, then the payoff to whoever picks the column. That is why it is called a bimatrix. Months in prison carry a minus sign, because a payoff measures how well each one does: −1 is better than −9.
Best responses
Rather than asking what is best in general, it helps to ask what is best for me if the other does a given thing. That is a best response. Patricio does not know what Claudio will do, but he can think through both cases. If Claudio stays silent, Patricio is better off betraying, because he walks free instead of spending a month in prison (0 is more than −1). If Claudio betrays, Patricio is still better off betraying: six months is less than nine (−6 is more than −9). Betraying is his best response either way, and Claudio, doing the same sums, reaches the same conclusion.
In class we usually underline the payoff that goes with each best response. It is a quick way of reading the table, and it is what the interactive table further down does.
Nash equilibrium
Suppose both betrayed and each gets six months. Each can ask: “knowing what the other did, would I have done better choosing differently?” Patricio would not: had he stayed silent while Claudio betrayed, he would have got nine months. Neither would Claudio, for the same reason. Neither regrets his choice.
That is the idea of a Nash equilibrium: a combination of decisions in which nobody would gain by changing their own while the others keep theirs. If in some cell one of the two does regret his choice, that cell is not an equilibrium, because that person has a reason to switch.
It can be drawn with arrows. In each column, a vertical arrow points to the row Patricio prefers if Claudio does that. In each row, a horizontal arrow points to the column Claudio prefers. The equilibrium is the cell no arrow leaves.
In the prisoner’s dilemma the equilibrium is that both betray. The paradox is that both would be better off staying silent: one month instead of six. When there is another cell where everyone would be at least as well off and someone better off, the outcome is said not to be Pareto efficient. That is the dilemma: what suits each one separately leads to a worse result for both.
The same structure turns up far from police stations. Two delivery apps competing through discounts both end up earning less, because neither can stop cutting prices without losing customers.
The stag hunt: when the problem is trust
The story comes from Rousseau. Rosa and Tomás go hunting. They can wait together for a stag, which can only be caught by the two of them and feeds both, or split up and each catch a hare, which is little food but certain. If one waits for the stag and the other goes after a hare, the first comes home empty-handed. In points: the shared stag is worth 4 to each, a hare is worth 3, and whoever waits alone gets 0.
Here there are two equilibria. If both go for the stag, neither wants to switch, because a hare is worth less. If both hunt hares, neither wants to switch either, because going for the stag alone is pointless. Unlike the prisoner’s dilemma, nobody gains by letting the other down. What is missing is confidence that the other will do their part: the good equilibrium exists, but it is fragile.
This comes up all the time in collective work. Something similar happens in cooperative video games: beating a hard boss as a group gives the best reward, but only if the whole team coordinates, and whoever doubts their teammates prefers the easy quests they can do alone.
Chicken: when each wants the other to give way
The name comes from a dare between drivers. Javiera and Alonso drive straight at each other, and the first to swerve is the “chicken”, the coward. If both swerve, it is a draw (0). If only one does, that one loses face (−1) and the other wins (1). If neither swerves, they crash, which is the worst outcome for both (−10).
The equilibria are the two cells where one swerves and the other keeps going straight. Each is better off giving way if the other does not, and not giving way if the other does. The problem is who gives way, which is why looking determined matters so much in these games.
An everyday version: two cars meeting head-on in a narrow lane, where one of them has to back up. On another scale, trade wars between countries are often described as a game of chicken: each government announces it will not back down, hoping the other will do so first, and if neither does, both lose.
Try it
The table has the three games with example numbers. You can change any payoff and watch the underlines and the equilibria move.
| Patricio \ Claudio | Silent | Betray |
|---|---|---|
| Silent | ||
| Betray |
Where the series is going
The prisoner’s dilemma is often used to conclude that cooperating is irrational. The course starts from the opposite observation: in many experiments people cooperate a good deal more than the table predicts, and the interesting question is why. The next notes will look at what changes when decisions are taken in turns, when we do not know everything about the other, and when people care about something besides their own payoff.
Sources
- Gibbons, R. (1992). A Primer in Game Theory. Harvester Wheatsheaf. Ch. 1.1: static games of complete information and Nash equilibrium. The months in prison in the prisoner’s dilemma are those of his example. (I read the Spanish translation: Un primer curso de teoría de juegos, Antoni Bosch, 2003.)
- Carpenter, J. and Robbett, A. (2022). Game Theory and Behavior. MIT Press. Chs. 2 and 4 (representing games and equilibrium) and ch. 18 (social dilemmas).
- Bonanno, G. (2024). Game Theory (3rd ed.). Open access. Ch. 2: games in strategic form, dominance and Nash equilibrium.
- Nash, J. F. (1950). Equilibrium points in n-person games. Proceedings of the National Academy of Sciences, 36(1), 48–49. doi.org/10.1073/pnas.36.1.48
- Rousseau, J.-J. (1755). Discourse on the Origin and Foundations of Inequality among Men. Part II, where the stag hunt story appears.
- Skyrms, B. (2004). The Stag Hunt and the Evolution of Social Structure. Cambridge University Press.
- Russell, B. (1959). Common Sense and Nuclear Warfare. George Allen & Unwin. One of the first texts to use the game of chicken to describe a standoff between powers.
- Game Theory course, PhD in Social Complexity Sciences, Universidad del Desarrollo (2026), taught by Carlos Rodríguez-Sickert. The approach of the series and the habit of underlining best responses in the bimatrix come from there.