Question: use java undefined Instructions: Use any IDE to write and execute the program below. Attach Snipping photos of your source code and execution of the
use java
undefined
Instructions: Use any IDE to write and execute the program below. Attach Snipping photos of your source code and execution of the code in the console. Hangman Game: Using Strings and strings methods, design a hangman game. 1. You should have a list of words to choose from (at least 20 words between lengths of 5 and 7). When each game stars it should choose a word from the list randomly. 2. Create a blank string with the exact size of your chosen word and fill it with underscores. 3. After each correct guess places all of the occurences of the correct letter in the blank string and displays it. (Hint: Use substring method to reconstruct the blank string) 4. If the user guesses a wrong letter, show a console-based hangman illustrating the progress. Please see the sample display below. Start Screen Progress Screen Lost Screen +---+ HANGMAN +---+ | +---+ 01 1 1 Missed letters: Guess a letter: Missed letters: or at Guess a letter: 5. Keep all of the user guesses in an array of ...ngs (or chars) and warn the user if they entered the same letter again. 6. The game should repeat until the user guesses the word or loses the game. Allow users to miss up to four or five letters. 7. Add one more feature of your own. 8. Good Luck and Have Fun
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
