If the XOR value of the odd-numbered steps is 0 when the first move is made, the first move must be defeated, otherwise it must be won
Analyzing the odd stepped n1^n3^n5^n7.....n=0upper hand win, if equal to 0 sente losing
In the first move, if the odd-numbered step XOR is not 0, according to the classic Nim game, there is always a way to make the odd-numbered step XOR 0
When 后手移动偶数there are stones on the steps, the first hand only needs to move the stones moved by the opponent to the next step, so that the stones on the odd steps are equivalent to unchanged.
When 后手移动奇数there are stones on the steps, the exclusive OR of the odd steps left to the first player is not 0. According to the classic Nim game, the first player can always find a solution to make the odd steps exclusive or 0