In the previous chapter we had an exercise in which the computer "thought" a number, and the user had to guess it.