Class HelpHowOption

java.lang.Object
javatro.manager.options.HelpHowOption
All Implemented Interfaces:
Option

public class HelpHowOption extends Object implements Option
The HelpHowOption class explains how to play javatro. This command is executed when the player requests gameplay instructions.
  • Constructor Details

    • HelpHowOption

      public HelpHowOption()
  • Method Details

    • getDescription

      public String getDescription()
      Returns a description of this command.
      Specified by:
      getDescription in interface Option
      Returns:
      A string describing the command.
    • execute

      public void execute() throws JavatroException
      Executes the command to display instructions on how to play.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - If an error occurs during execution.