Hi, I really need\'s help for this problem Computer picks a secret word that the
ID: 3636837 • Letter: H
Question
Hi,I really need's help for this problem
Computer picks a secret word that the user needs to guess. Use
a fixed array of strings for a predetermined list of words (I will
supply this)
Program displays as many dashes as there are letters in the
secret word (let’s cal
l this status indicator)
When the user guesses a letter, if that letter is in the secret
word, all instances of that letter are filled in the status indicator.
If this happens to be a failed guess, it is counted against the
user, and, it is displayed in failed letter line (sorted). If the user
guesses an already guessed letter, simply ignore it. Also, user
can guess the entire word, if there is no match, this is counted
as a guess. Don’
t worry about displaying the incorrect word
guesses.
Game ends when you user correctly guesses all letters in the
secret word (successfully), or uses all 8 chances to guess a
letter (hanged
).
Once the game ends, user should be able to restart a new game
or exit.
Thank you all.
Explanation / Answer
Please provide me the list of words.
source code http://www.mediafire.com/?l9g7bn7v2hzsbm3
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.