Answered step by step
Verified Expert Solution
Question
1 Approved Answer
language is co+ and need to run itin code blocks For this project you are going to create the game hangman. Hangman is a simple
language is co+ and need to run itin code blocks 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: s_n s Make a guess: a a is not in the word The word is:s__n-s
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started