
26 Winning Strategies for a Matchstick Game 261
game. Given the above argument, it is not difficult to see that I also have a
winning strategy if it is my turn and there are 3 or 4 matchsticks on the table.
In the former case, I remove 2 sticks, and in the latter case, I pick 3. In both
cases, my brother is faced with a single stick lying in front of him, and he will
therefore lose the game.
Let us summarize the insights we gained so far. We now know that a player
has a winning strategy if it is his turn, and if there are 2, 3 or 4 matchsticks
remaining on the table. In either one of these cases, the player can move
strategically, and force the other player to lose the game.
The table below has a column for each of the game situations that we have
analyzed so far. The lower entry in column i (which we denote by GS
i
) indi-
cates whether the current player has a winning strategy, given that i match-
sticks remain.
i 12 3 4
GS
i
No Yes Yes Yes
So far so good. But what happens if there are 5 matchsticks on the table?
The answer to this question appears to be slightly less obvious in comparison
to the previous cases. It is, however, a game situation that interests me quite
a bit as it was the second to last configuration I faced in the first game
against my brother. Could I have forced him to lose out of this configuration?
Let’s see! The rules of the game force me to remove at least 1 and at most
3 matchsticks from the table. No matter what I do, my brother will have 2, 3
or 4 matchsticks left on the table. But we already know that he has a winning
strategy in each of these situations! Therefore, if my brother plays smartly,
he will force me to lose no matter how I move. As long as the other player
moves strategically, a player cannot win starting from a game configuration
with 5 matchsticks, and thus GS
5
=No.
If there are 6 matchsticks remaining on the table, I can take either 1, 2 or
3 sticks which leaves my brother with 3, 4 or 5 sticks. Looking at the table,
I know that my brother has a winning strategy, given that there are 3 or 4
sticks remaining for his move. However, if I leave him 5 sticks, then he can’t
win given that I play cleverly. Therefore, I do have a winning strategy, given
that there are 6 sticks remaining: I just have to take one stick off the table.
Therefore, we have GS
6
=Yes.
An Algorithm to Compute a Winning Strategy
It is now easy to extend the example calculations above. For example, assume
that we have already computed GS
i
for 1 ≤ i ≤ 14, and that we know whether
a player has a winning strategy, given that there are i matchsticks remaining,
whenever i is at most 14. If there are 15 matchsticks remaining, then the
current player needs to pick 1, 2 or 3 sticks off the table, and would leave 12,