Problem 260
Stone Game
A game is played with three piles of stones and two players.
On each player’s turn, the player may remove one or more stones from the piles. However, if the player takes stones from more than one pile, she must remove the same number of stones from each of the selected piles.
In other words, the player chooses some
stones from any single pile; or stones from each of any two piles ( total); or stones from each of the three piles ( total).
The player taking the last stone(s) wins the game.
A winning configuration is one where the first player can force a win.
For example,
A losing configuration is one where the second player can force a win, no matter what the first player does.
For example,
Consider all losing configurations
We can verify that
Find
取石子游戏(一)
取石子游戏需要两名玩家和三堆石子。
每一名玩家在自己的回合可以从堆中取走一个或多个石子。然而,如果玩家从多个堆中取石子,从其中每个堆所取的石子数目必须一致。
也就是说,每一名玩家选择一个数
- 一个堆中的
个石子;或 - 两个堆中各
个石子(共 个);或 - 三个堆中各
个石子(共 个)。
拿走所有石子的玩家赢得游戏。
所谓必胜态,指的是先手玩家必胜的石子分布。
例如,
所谓必败态,指的是无论先手玩家如何操作,后手玩家必胜的石子分布。
例如,
考虑所有满足
可以验证,对于所有这些必败态,
考虑所有满足
Gitalking ...