我遇到了一个问题。
有 N 堆石头,其中第 i 堆有 xi 块石头。爱丽丝和鲍勃玩以下游戏:
a. Alice starts, and they alternate turns.
b. In a turn, a player can choose any one of the piles of stones and divide the stones in it into any number of unequal piles such that no two of the piles you create should have the same number of stones. For example, if there 8 stones in a pile, it can be divided into one of these set of piles: (1,2,5), (1,3,4), (1,7), (2,6) or (3,5).
c. The player who cannot make a move (because all the remaining piles are indivisible) loses the game.
给定起始的牌堆,假设两个玩家都打得最好,谁会赢得比赛?
最重要的陈述——“如果爱丽丝获胜,答案应该是爱丽丝,否则答案是鲍勃。”
现在我的问题是,如果我们最初只有一堆 8 块石头,那么实际答案是 Bob。但就我而言,如果 Alice 将最初的 8 块石头分成两堆 7 和 1,即 8->7+1,那么如果 Alice 采用最佳策略(最优),Bob 就不可能获胜。然而答案是鲍勃。有人可以帮我找出答案是 Bob 的原因吗?我认为我在上面标记为最重要的陈述在这个答案中很重要,但我还无法弄清楚。任何人都可以帮忙吗?您可以参考此链接,该链接在“Grundy's Game”的 Wikipedia 上显示完全相同的插图
任何基本的想法也值得赞赏。
伙计们,这正是我面临的问题。任何小想法也值得赞赏。