1.8 Hangman: "hangman.rkt"
| (require htdp/hangman) | package: htdp-lib | 
The teachpack implements the callback functions for playing a Hangman game, based on a function designed by a student. The player guesses a letter and the program responds with an answer that indicates how many times, if at all, the letter occurs in the secret word.
procedure
make-word : (-> symbol? symbol? symbol? word?) reveal : (-> word? word? word?) draw-next-part : (-> symbol? true) 
Chooses a “secret” three-letter word and uses the given functions to
manage the Hangman game.
procedure
(hangman-list reveal-for-list draw-next-part) → true 
reveal-for-list : 
(-> symbol? (list-of symbol?) (list-of symbol?) (list-of symbol?)) draw-next-part : (-> symbol? true) 
Chooses a “secret” word—
In addition, the teachpack re-exports the entire functionality of the drawing library; see Simple Drawing: "draw.rkt" for documentation.