Question: Help Please!! This programming project asks you to develop a hangman game which has the following characteristics: 1. It is driven by a while loop

Help Please!!

This programming project asks you to develop a hangman game which has the following characteristics:

1. It is driven by a while loop from main that allows the user to play the game as many times as they wish.

2. Validates ALL user input. (each character input for the word guess must be an alpha, 'a' is the same as 'A', all blank spaces ignored, 'y' = 'Y' = ' y ', etc)

3. A list of at least 20 words for the game are kept in a file that is read in at the time the program starts. These words are then stored in an array. Use a random number generator to access into the array to select the secret word. Don't repeat words during one run of the program. (What type of C++ structure would best hold this? Parallel arrays? An array of structures?)

4. Once each game begins, show the gallows, and indicate the number of characters in the word, like this: ______ | | | ____________ Word : _ _ _ _ _ _ _ That's just a suggestion as to how it may look. Actually, I am sure that you can do better than that. For each wrong guess, draw a body part on the gallows and show it in a list of incorrect guesses. For each correct guess, fill in one of the blanks in the word. ______ | ( ) | | ____________ Word : a _ _ _ _ _ Incorrect guesses: p (this pictures shows 1 wrong guess and 1 correct guess).

5. The maximum number of moves before the person is hung would be 8 or 9, depending on your ability to draw head, neck, body, 2 legs, 2 arms...when the man is hung, the game is over. Or, the game is over when the user correctly guesses each letter in the word.

6. This program must have good modular design - using proper functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a C hangman game that addresses all the points in a detailed manner follow this expanded guide focusing on each project requirement 1 Set Up the Development Environment Essential Libraries i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!