hangman-lib.ss

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

  • hangman-repl : word reveal make-word draw-next-part -> #t
    that is, it consumes a word, the program reveal, the constructor make-word, and 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 'h 'e 'l 'l 'o) reveal make-word draw-next-part)
    ...