This game is a variation of the old Eastern game "
Nim".
Starting with a deck of cards, two players take turns removing cards from the deck. During his turn a player may take one, two or three cards. The winner is the person who takes the last card (or cards) from the deck.
There is a strategy that the first player can follow in order to assure his victory, but this strategy will not work for all the deck configurations.
What is this strategy, which of the following decks will it work for, and why?
- 32 cards (7s through Aces)
- 36 cards (6s through Aces)
- 52 cards (2s through Aces)
- 54 cards (2s through Aces + 2 Jokers)
There is a stategy what works for most games like this: (t-1)/(c+1)where t = the total number of cards and c = the number of cards you can take on a turn.
As long as there is a remainder after this division takes place, you can go first and win the game. Just start by taking the remainder, and after that take 1 when they take 3, 2 when they take 2, and 3 when they take 1.
If there is a remainder, then try to trick them into going first. Otherwise, try to reduce the number to a multiple of 4, like levik said.