For example, if we have heaps of size 6,3,2 and 4, then I may choose to take 2 matches from the heap of size 6, or I may choose to take all 4 of the matches from the heap of size 4.
You can play Nim against the computer at the bottom of this page. Simply click on 'New Game' to begin. The computer will pick some random heaps with up to 15 matches in each. You take matches from the piles by changing the number in one of the piles and clicking on 'Move'. The computer will check if your move is legal, and then play it's reply.
Watch out though, if you make a mistake the computer will beat you. It's also kind enough to tell you when it is going to win, and when it thinks it is loosing.
Once you are beating the computer you should be able to keep on beating it until the end of the game. Once the computer starts winning, there's not a lot you can do I'm afraid.
|Website Last Updated : April 2004|