A Procedure to Play Nim
The computer will play Nim against a human, with the human and the computer
alternating turns.
The top-level procedure for playing will be:
(play-with-turns game-state player)
- game-state is the current state of the game
- player is who plays next, human or computer
- If player is human, the procedure must get a move from the
player and change the game's state
- If player is computer, the procedure must make a move
and change the game's state
- Repeat this process until the game is over.