Code for a guessing game.