Marbles: Strategy

Determining Winning and Losing States

You can determine the strategy for the game of Marbles by determining the winning and losing states. In the following table, the moves column shows how many marbles you can remove and whether the resulting state is winning (W) or losing (L):

Number of MarblesWinning State?MovesWinning Move
0No
1Yes1L1
2Yes1W, 2L2
3Yes1W, 2W, 3L3
4No1W, 2W, 3W
5Yes1L, 2W, 3W1
6Yes1W, 2L, 3W2
7Yes1W, 2W, 3L3
8No1W, 2W, 3W
9Yes1L, 2W, 3W1
10Yes1W, 2L, 3W2
11Yes1W, 2W, 3L3
12No1W, 2W, 3W

It should be clear now that the losing states are ones where the number of marbles is a multiple of 4. This is because any other state can transition to a losing state by removing 1, 2, or 3 marbles. A losing state itself cannot transition to another losing state since removing 4 marbles isn't a valid move.

Using Mirroring

The game of Marbles is a perfect example of a game that can be played with the mirroring strategy. For every action of removing 1-3 marbles from a pile, there is a mirrored move. The mirrored move is to remove 4 - x marbles, where x is the number of marbles in the move you are mirroring. This groups every pair of moves into a group of 4. Therefore if the number of marbles is a multiple of 4, you are in a losing position since your opponent can always mirror your move. If the number of marbles is not a multiple of 4, you can always make a move that will leave your opponent with a multiple of 4 marbles.