Class CliRunner

java.lang.Object
com.bdtripp.hauntedhouse.engine.CliRunner

public class CliRunner extends Object
Runs the game in a command-line environment. The CliRunner initializes the game engine, reads player input from the terminal, converts it into commands, and prints the resulting output until the session ends.
Author:
Brian Tripp
  • Constructor Details

    • CliRunner

      public CliRunner()
      Initializes the parser and game engine for cli play.
  • Method Details

    • main

      public static void main(String[] args)
      The main entry point. Creates a CliRunner and runs it.
      Parameters:
      args - command-line arguments