Class HelpRulesOption

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

public class HelpRulesOption extends Object implements Option
The HelpRulesOption class provides the rules for playing javatro. This command is executed when the player requests game rules.
  • Constructor Details

    • HelpRulesOption

      public HelpRulesOption()
  • 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 the rules of the game.
      Specified by:
      execute in interface Option
      Throws:
      JavatroException - If an error occurs during execution.