Game State Representation 1

Represent the two numbers in one integer, as in 45.

Then a game state is constructed by:

          (+ (* 4 10) 5) = 45
The number of coins in pile 1 is selected by:
          (quotient 45 10) = 4
The number of coins in pile 2 is selected by:
          (remainder 45 10) = 5