Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Second move depend on how the computer moves., if it takes two from row 2, take two from row 3. If it takes two from row 3, take two from row 2. (1,2,3)
Then next, do whatever it takes to make two rows of the same number of coins. (probably 2,2)
Lastly, just mirror the computer's moves on the longer row. It'll probably take 1 from a row; you take 1 from the other. You'll take the last coin no matter what.
I dunno How to skip a puzzle to this game yet or if I have the option and it is the first one after the entrance.
Thanks! That did it. :)) On my own I was getting nowhere, so looked for a solution here.
(I hope this doesn't count as necroing the thread, even though it's old, it's still valid!)
I know binary numbers, but don't see how this puzzle has anything to do with them. (Maybe I'm too old and fuzzy-headed by now.) Not sure if this is the place to go into more detail, but I'd be interested. :)
The solution to any nim puzzle is to calculate the nim-sum, which is essentially breaking it down into binary digits and eliminating any pairs of binary digits from among the stacks, if you find the value is 0 on your turn you have lost unless the opponent messes up (which it presumably won't with a computer playing and such a trivial algorithm to work out the right move), if not make a move that makes it 0 and you should win.
For the starting position in this game we have 3,4,5 so in binary 011, 100 and 101 - the two fours and two ones cancel, leaving a nim sum of 2 coming from the first stack of 3. So the correct move is to take two from the stack of three (as mentioned by a couple of other posters).
This then leaves the computer in an impossible position (if we don't make a mistake) - if it takes the one left from the first stack we can match its move and remove one from the third stack leaving two stacks of 4 and then we can mirror down any moves the computer makes until we win by making the last move (or in the normal version of nim where you want to force the opponent to take the last piece we match down to the last move when we either take one more or less piece to leave a singletone behind).
Equally if the AI decides to take 4 from the 5 stack to leave 1, 4, 1 we take 4 from the middle stack matching his move again and leaving two singleton stacks to win, or it could take 1 from the 5 stack leaving 1,4,4 and we take the single 1 to get to that same two stacks of four from the previous paragraph, or if it took 2 from the middle stack to leave 1, 2, 5 we can remove 2 from the last stack and leave 1, 2, 3), and so on.
The decomposition of the stack numbers into binary is essentially because we need to engineer a situation where we control the game because each move by the opponent can be matched on another stack (or the same one, for example if we messed up at 1,4,1 and only took 2 from the middle stack, the correct move is then to remove the 2 we left as that is now the sole unmatched digit in the nim sum).