Question: Develop a console - based Hangman game. Hardcode ten ( 1 0 ) words of up to eighth ( 8 ) letters into your program.

Develop a console-based Hangman game. Hardcode ten (10) words of up to eighth (8) 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 wins/losses. 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 11 tries to guess if the letter is in the word. After 11 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!