LibraryQuant puzzles
Three piles hold 5, 7 and 9 counters. Players alternate. A move takes any positive number of counters from exactly one pile. Under the normal rule the player who takes the last counter on the board wins.
Write the three pile sizes in binary and compare the columns. For the changed rule, ask at which stage of the game the two win conditions can actually lead to different moves.
A quantity that is zero exactly on the losing positions and that no single move can preserve is a complete solution to a game. Bitwise exclusive or is that quantity for Nim, and the misere variant shows how little of the analysis a changed win condition disturbs.
You have the question, a hint and the idea. It finds the winning move from the given piles, explains why it wins, and shows how the strategy changes under the reversed rule.