Class ConsoleGame

java.lang.Object
games.dummy.ConsoleGame

public class ConsoleGame extends Object
Conducts the dummy game on the console.
  • Constructor Details

    • ConsoleGame

      public ConsoleGame()
  • Method Details

    • parseMove

      public static common.util.board.Position parseMove(String s)
      Converts a string containing the position of a move to a Position object.
      Parameters:
      s - a string that should contain two space-separated integers
      Returns:
      the Position object that was constructed from the string
      Throws:
      IllegalArgumentException - if the format of the string is invalid, i.e., its content is not two integers separated with spaces