game 2 is as the exercise demands

http://openbookproject.net/pybiblio/practice/wilson/guessinggame.php