Question: language is c++ and need to run it in code blocks. Please comment the code too. For this project you are going to create the

language is c++ and need to run it in code blocks. Please comment the code too.

language is c++ and need to run it in code blocks. Pleasecomment the code too. For this project you are going to createthe game hangman. Hangman is a simple word game where the player

For this project you are going to create the game hangman. Hangman is a simple word game where the player attempts to guess a word before they get "hung" by guessing letters that they think might be in the word. Your program should begin by reading words from a file and then choosing one of them to be the random word which the user will try to guess Allow the user to guess letters one at a time until they get the word or guess incorrectly 6 times. Have an interface which looks similar to the one below: The word is: __ Make a guess: - As the player makes guesses update the display accordingly. When the player misses draw a new part of the person hanging from the gallows. Here is an example: The word is: sns Make a guess: a a is not in the word The word is: s__n__S Make a guess In this case the right arm would have just been drawn because of the fourth miss. When the player gets a letter correct you should update the blank where that letter occurs to show where it goes (as was the case with s and n in the example above). When the game ends tell what the word was and whether or not the player won. Here is an example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!