Class HangmanMain

Object
HangmanMain

public class HangmanMain extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    For this method, you will need to: Create a new HangmanGame object Call the printScreen() method (remember how to call methods on different objects!) Use getInput("Would you like easy or hard words? ") to get user input on what difficulty they would like Call initializeWords(), passing in selectDifficulty(), which requires the input from the user you just got. Call wordSelect(). Print the initial hangman gallows by calling getZero(). Call printWordProgress() While the game is not finished, get input from the user on what letter they guess using getInput("Guess a letter: ") and call guess(), passing in the guess input.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HangmanMain

      public HangmanMain()
  • Method Details

    • main

      public static void main(String[] args)
      For this method, you will need to:
      1. Create a new HangmanGame object
      2. Call the printScreen() method (remember how to call methods on different objects!)
      3. Use getInput("Would you like easy or hard words? ") to get user input on what difficulty they would like
      4. Call initializeWords(), passing in selectDifficulty(), which requires the input from the user you just got.
      5. Call wordSelect().
      6. Print the initial hangman gallows by calling getZero().
      7. Call printWordProgress()
      8. While the game is not finished, get input from the user on what letter they guess using getInput("Guess a letter: ") and call guess(), passing in the guess input.
      Parameters:
      args -