All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Games
Real Nim Variations (Posted on 2003-05-18) Difficulty: 3 of 5
The puzzle “A Game of Nim” asked for the strategy in a game in which two persons take turns removing cards from a deck, limited to 1, 2 or 3 cards.

However, there is a more interesting version of Nim, in which players can take as many as they want, but from only one pile or set of objects in a turn, where there are several piles or sets present.

If done with cards, one way of setting the rule could be that in one turn you might take as many as you want from any one suit. Another choice for the rule might be to take as many as you want of a given denomination. The object is again to be the person to take the last card.

If you were to play first (take the first set of cards), which of the two rules of the preceding paragraph would you want to use and why? (i.e., would you rather it limit one player’s turn to one suit or to one denomination?)

Finally, if the rules were that each play the player can take as many as desired of any one suit, but play were to start with the king of clubs removed, as well as the king and queen of hearts, what would be the strategy to win then? This is the equivalent of having a different number of objects in two of the four piles: 13, 13, 12 and 11.

See The Solution Submitted by Charlie    
Rating: 4.3333 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution? | Comment 1 of 7
This is very intuitive and not mathematical in the slightest, so please bear with me...

I can't prove it, but I think the answer is that as first player you would want to limit each turn to removing cards within a denomination, and would lose if playing the game within suits instead.

The basic reasoning I have is that after a player's turn, he will win if the cards left on the table form some sort of "symmetrical pairing"... for instance, if there are two groups of three cards left, or two groups with one card and six groups with two each, etc. If this is the case, there must be an even number of piles left, and no matter what the other player does, one can use their own turn to restore this balance. Thus, as first player, if there are thirteen piles (as there would be with denominations), just remove one pile - the resulting spread (12 piles of four cards each) is symmetric, and the first player can mirror the second player's move until player 1 wins. However, if there are only four piles at the start (as there would be with suits), the spread is already symmetric, and the second player can mirror the first player until player 2 wins.

Regarding the third possibility with some cards missing, I would say the first player should remove a card from the pile with 12 (i.e. remove one club), leaving a symmetric spread of 13, 13, 11, 11... this is again a winning situation.
  Posted by Trevor Leitch on 2003-05-18 07:05:13
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information