Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* * USE ICS 4 U COMPONENTS * * * Go for the spicy component * Hangman Game Objective: Create a Hangman game in Java

**USE ICS4U COMPONENTS**
*Go for the spicy component*
Hangman Game
Objective: Create a Hangman game in Java (console) with varying levels of difficulty.
Mild
Requirements:
1. Implement a basic version of the Hangman game where the user guesses letters to uncover a hidden word.
2. Display ASCII art representing the Hangman's gallows and the current state of the word (with blanks for unguessed letters and revealed letters).
3. Allow the user a maximum of 6 incorrect guesses before losing the game.
4. Provide feedback to the user after each guess (e.g., whether the guessed letter is correct or incorrect).
Medium
Additional Requirements:
2. Include a predefined list of words for the game, with the word chosen randomly for each round.
3. Add a feature to display a hangman ASCII art that updates with each incorrect guess, representing the progression towards losing the game.
4. Along with the ASCII art, display the guessed letters that are incorrect and correct so the user can easily keep track of their progress.
4. Include error handling for invalid inputs and ensure the program does not crash if the user enters non-alphabetic characters.
Spicy
Additional Requirements:
1. 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.
2. Allow the user to play multiple rounds of the game without restarting the program.
3. 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.
4. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

What is meant by group polarization?

Answered: 1 week ago