Hi, I am relatively new with C++ and was wondering if someone could help me make a program. I would like to make a hangman game that allows the user to enter a secret word (all capitals or lowercase) and a guess. I would like the program to produce x amount of underscores, where x is the length of the word. The user should be able to guess incorrectly a maximum of 5 times. Also it would be great if each underscore is replaced with the letter from the guess if the letters are the same.
I know people aren't usually to keen of creating programs for free, but I imagine that this little game wouldn't take long for an experienced programmer. So if you have extra time to create a game any help is greatly appreciated.
Here is an example of what I would like the end program to look like-
Example:
Enter the secret word (all capitals or lowercase): hangman
_ _ _ _ _ _ _ 7 amount of characters based on the word
You have 5 tries left:
Guess:h
h _ _ _ _ _ _
You have 5 tries left:
Guess: t
You have 4 tries left
h _ _ _ _ _ _
Guess:a
h a _ _ _ a _
You have 4 tries left:
this little game wouldn't take long for an experienced programmer
You are correct; it is pretty simple. However, this not a free homework site. If you want someone to do it, then you must offer some type of monetary value. Do you really think the experience programmers will stop what they are doing to do a simple homework assignment? You placed your post in the right place. Be willing to pay and I am sure someone will be more than happy to do it. Just like you, we have a life and we do not sit behind keyboards hoping to do homework for free (regardless of how simple do you think it is).
It's my first time here. But isn't this section for jobs? Aren't you're supposed to offer a job or ask one at the very least. I don't think this is a place to ask for help for homework...