It occurs in the penultimate position of the word and the response of hangman-guess says so. When the player enters ' i again as the fourth guess, hangman-guess detects no progress because the positions of ' i have already been revealed. In the informal description of the game, this aspect had been left open. By putting together an example, we become aware of this ambiguity and can make a decision. The first two variables always stand for word s, as their name says.
Figure contains the definitions of the state variables and their purpose statements.
Next we must develop an initializer for the state variables. As in the preceding section, a single initializer suffices. It is the hangman function, and its purpose is to set up the program's memory. The initial value for status-word requires a short analysis. First, the value must be a word.