i am trying to create an interactive program that gives a prompt for the hangman game. there is meant to be a phrase book of about 100 movies. The phrase book is in an attachment. So far what i have done is made a I made a for loop to go through the length of the secret phrase and used an if/else statement to assign asterisk if the alphabet pick is right and underscore if right. Well i am not meant to use arrays so I am really stuck and i need help trying to show the correct picks and also putting a counter showing the number of wrong picks. In the end a total of wrong picks ends the game and a prompt is meant to ask if u want to replay. Thank you all for the anticipated help I am really stuck on this stuff
Jump to Post
Where's the intro() method located? It isn't in the hangman class or the PhraseBank class.
If it returns a reach end of file error you would need another } added to the end, most likely.
All 9 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.