Question: Develop a console - based Hangman game. Hardcode ten ( 1 0 ) words of up to eighth ( 8 ) letters into your program.
Develop a consolebased Hangman game. Hardcode ten words of up to eighth letters into your program. Create a class for managing the game logic, including tracking the word to guess, letters guessed, and remaining attempts. Use arrays or ArrayLists for letters and implement methods for checking winslosses Display the game as follows:
Example for the word EXAM: X A
Handle Capital and lowercase letters as the same type of letter.
No need to draw the hanged person. Just state if correct or incorrect. The player has tries to guess if the letter is in the word. After incorrect guesses, the player loses the round and may not guess any more in that round.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
