Java application modeled after the game of hangman

Assignment Help JAVA Programming
Reference no: EM13692748

Creating a Java application modeled after the game of hangman, where a user must guess a hidden word or phrase in a limited number of guesses.

As part of your solution you will need to create two Java classes that represent graphical objects. The first is the Gallows class which represents the frame upon which the unfortunate Figure class will meet its demise should the player guess incorrectly.

You will also need to create a GUI (graphical user interface) that allows players to interact with your game. This includes the following:

• Entering a guess
• Submitting a guess
• Viewing the number of letters in the word they must guess
• Viewing the completed portion of the word they must guess
• Viewing their progress towards a losing the game
• Being able to reset the game with a new word
• Being able to choose a custom word for a new game
• Being notified when they win or lose the game
• Being given the option to see the secret word if they were not able to guess it

Algorithms:

Develop multiple algorithms in order to solve the following problems:

1. You will need to be able to select a random word from a list of words. See the instructions below for information on the different methods that can be used to accomplish this.

2. You will need to be able to display what portion of the secret word has been discovered and what portion remains unknown. This may be difficult and may involve multiple cases.

3. You will need to check user input to make sure it is valid. This includes making sure that they have entered a letter, checking that they have only entered a single letter, and checking that they have not previously used that letter before.

4. You will need to be able to determine if a guess made by the player is contained in the secret word and either update the displayed portion of the secret word to reflect a correct guess, or visually indicate an incorrect guess by displaying the additional parts of the Figure.

5. You will need to check if a custom word entered by a user only contains valid characters such as letters and reject any input that contains invalid characters.

6. You will need to determine if a player has won or lost the game and appropriately convey that information to the user and ask them if they would like to restart the game.

Reference no: EM13692748

Questions Cloud

Add vitride to a sluggish grignard reagent formation : Comment on whether or not it is/was worthwhile to add Vitride to a sluggish Grignard reagent formation based on your answer to part 2 above as well as based on how you characterized the product.
One drop of the vitride solution : How many moles of Vitride are in one drop of the Vitride solution?
Nme the phenol with two chlorines : Nme the phenol with two chlorines
Calculat the number of mol atoms of h present in 1 : Calculat the number of mol atoms of H present in 1 molecule of aspartame
Java application modeled after the game of hangman : Creating a Java application modeled after the game of hangman, where a user must guess a hidden word or phrase in a limited number of guesses.
What is the engineer concern : What is the engineer's concern about the overhead rate going "up and up"?
Determine what action the firm should pursue : Use decision analysis tools discussed in class to determine what action the firm should pursue in order to minimize expected loss; either manual analysis or software is acceptable. Please also calculate the minimum expected loss.
Prepare a budgeted income statement : Prepare a budgeted income statement
A useful definition of price gouging : A useful definition of price gouging?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd