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
vobiahu
0
Newbie Poster
Recommended Answers
Jump to PostYou are not meant to use arrays, does the restriction also imply against use of Collection like ArrayList, HashSet etc
Jump to PostWhere'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.
Jump to PostYou are not meant to use arrays, does the restriction also imply against use of Collection like ArrayList, HashSet etc
Of course not. Those classes use arrays rather extensively in …
All 9 Replies
stephen84s
550
Nearly a Posting Virtuoso
Featured Poster
jay90
0
Newbie Poster
johnnyboy1307
0
Newbie Poster
Alyoops
0
Newbie Poster
Alyoops
0
Newbie Poster
Katana24
3
Junior Poster
jwenting
1,889
duckman
Team Colleague
Alyoops
commented:
an idiot for not knowing anything about programming? You must be the idiot making it seem like programming is life. I REALLY CANT DO IT BECAUSE I KNOW NOTHING ABOUT IT! So you either help me or just leave me alone
+0
jwenting
1,889
duckman
Team Colleague
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.