Class ConsoleGame
java.lang.Object
games.dummy.ConsoleGame
Conducts the dummy game on the console.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConsoleGame
public ConsoleGame()
-
-
Method Details
-
parseMove
Converts a string containing the position of a move to aPositionobject.- Parameters:
s- a string that should contain two space-separated integers- Returns:
- the
Positionobject 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
-