Word Guess Game

by Elizabeth B

Description

As modified from the Word Guess Handout: "This game is synonymous to the well-known hangman game. When the user plays this game, the computer first selects a secret word at random from a list built into the program and the program then prints out a row of dashes — one for each letter in the secret word. The user is asked to guess a letter. If the user guesses a correct letter, the word is re-displayed with all instances of that letter shown in the correct positions, along with any letters previously guessed correctly. If the word does not contain the letter, the user is charged with an incorrect guess. The user keeps guessing until either (1) the user has correctly guessed all letters in the word or (2) the user has made 8 incorrect guesses."