Its last part is the current value of status-word so that the player sees what he has discovered. In principle, the question marks should be the body part that the player just lost to the gallows. The second case is much simpler than the first. If the two are not equal, the player made some progress and must be told. The response consists of an encouragement and the new status.
Figure contains the complete definition of hangman-guess .
Exercise 37.2.3 Draw a diagram that shows how hangman and hangman-guess interact with the state variables. Develop a graphical user interface, similar to that of the teachpack hangman.ss . Connect the functions in this section as call-backs. Modify the program so that it keeps track of all the guesses.