![]() |
Tile Nim |
Close this window to go |
| Base Ten | Binary | |
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111 |
(One in the one's place) (One in the two's place, zero in the one's place) (One in the two's place, one in the one's place: 2+1=3) (One in the four's place, zero in the two's and one's) (One in the four's place, zero in the two's place, and one in the one's place: 4 + 1 = 5) (One in the four's place, one in the two's place, and zero in the one's place: 4 + 2 + 0 = 6) (One in the four's place, one in the two's place, and one in the one's place: 4 + 2 + 1 = 7) (8 + 0 + 0 + 0 = 8) (8 + 0 + 0 + 1 = 9) (8 + 0 +2 + 0 = 10) (8 + 0 + 2 + 1 =11) (8 + 4 + 0 + 0 =12) (8 + 4 + 0 + 1 = 13) (8 + 4 + 2 + 0 = 14) (8 + 4 + 2 + 1 =15) |
At the end of each player's turn, the arrangement of sticks is either "safe" or "unsafe." When your turn ends in a safe position, you can win. If your turn ends in an unsafe position, you will lose (if you're playing against someone who is an expert at Nim).
Safe positions are made unsafe by any move. Unsafe positions can become either safe or unsafe depending on the move. The first step in playing the game is to decide if the opening position is safe or unsafe. If it is safe, there is nothing you can do to make it safe so let your opponent go first. If it is unsafe, you'll be able to make it safe with your move so you should go first.
Let's look at a sample game:

In binary notation the rows have 11, 100, and 101 tiles, respectively.
Now line up the binary notations in one column:
|
11 |

Now the binary numbers are:
|
1 |
Your opponent, who isn't an expert in binary numbers, takes 3 tiles from the bottom row.

|
1 |
What should your move be?
The best move would be to remove the 1 in the top row. That will leave 2 ones in the first column and zero ones in the second column.
Your opponent now removes one from the row of four.
![]()
|
11 |
Now what is your move?
You need to make the row of 3 a row of 2.
![]()
Can you win at this point? Bet you can!!
Try this strategy using different numbers of tiles in different arrangements--you can always win (unless your opponent read this page!).
copyright 2003, Center for Hands-On Learning, all rights reserved