Plugging in an Intelligent Strategy

Think about how to play three-pile Nim intelligently, that is, to force a win when possible: