Subtraction game (source code)

= Subtraction game

A subtraction game has a heap of <nonnegative integer> size. A legal move subtracts an allowed positive amount without making the size negative; normal play declares an empty move set losing.