Cmpsc 101, Project : Hangman

Write a program ( filename : hangman.pl ) which can be used to play the classical hangman game.

  1. It must read in a word typed in by the user without the word being seen on the monitor.
  2. It must enter a loop and at each looping three items should be shown :
    1. A sketch of the present status of the hangman, created by suitable print statements
    2. The letters of the word guessed already correctly with underscores for the letters no already guessed.
    3. Request to enter another letter
  3. Appropriate response once the hangman is complete or the user has guessed the word, whichever comes first.


Zig Herzog; hgn@psu.edu
Send a Note to Zig
Last revised: 12/02/04