A zero means lost
transcript
Two players take turns. Nobody can see the whole game tree. One number summarises each position.
A move takes one, three or four items. Pile zero has value zero. Pile two can only reach pile one. So pile two has value zero.
List the values one move away. Take the smallest number not in the list. That number is the value of the pile.
Independent games add by xor. If the total is zero, the player to move loses. Otherwise there is a winning move.
The piles are three, four and five. The total is two. Pile three goes down to one. That leaves a total of zero.
A position with no move is lost. A lost position only reaches won positions. A value of zero never reaches a zero. A nonzero value always can do it.
Give every position a value. A winning move reaches zero. Full breakdown in the lecture.