Answered step by step
Verified Expert Solution
Question
1 Approved Answer
* * USE ICS 4 U COMPONENTS * * * Go for the spicy component * Hangman Game Objective: Create a Hangman game in Java
USE ICSU COMPONENTS
Go for the spicy component
Hangman Game
Objective: Create a Hangman game in Java console with varying levels of difficulty.
Mild
Requirements:
Implement a basic version of the Hangman game where the user guesses letters to uncover a hidden word.
Display ASCII art representing the Hangman's gallows and the current state of the word with blanks for unguessed letters and revealed letters
Allow the user a maximum of incorrect guesses before losing the game.
Provide feedback to the user after each guess eg whether the guessed letter is correct or incorrect
Medium
Additional Requirements:
Include a predefined list of words for the game, with the word chosen randomly for each round.
Add a feature to display a hangman ASCII art that updates with each incorrect guess, representing the progression towards losing the game.
Along with the ASCII art, display the guessed letters that are incorrect and correct so the user can easily keep track of their progress.
Include error handling for invalid inputs and ensure the program does not crash if the user enters nonalphabetic characters.
Spicy
Additional Requirements:
Allow the user to choose the level of difficulty easy medium, hard before starting the game. Each difficulty level should correspond to a different word length range.
Allow the user to play multiple rounds of the game without restarting the program.
Implement a scoring system where the user earns points based on the difficulty level and the number of guesses remaining when the word is guessed correctly.
If the user plays multiple rounds, allow them to accumulate points from previous rounds, or potentially lose points for losing games.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started