hangman-lib.ss

The library hangman-lib.ss provides all the operations that draw-lib.ss provides and the following two:

  • hangman-repl : word word reveal draw-next-part -> #t
    that is, it consumes two words, the program reveal, the program draw-next-part
  • g-hangman-repl : word reveal copy draw-next-part -> #t
    that is, it consumes a word, the program reveal, the program copy, and the program draw-next-part.
  • The use of the operations is explained in more detail in the corresponding exercises.


    Sample session: Define the required programs. Execute and play:
    > (hangman-repl (make-word 'a 'l 'e) (make-word '_ '_ '_) reveal draw-next-part)
    ...