Secret number homework

My solution to the first homework, a secret number game.