edu.lhup.ai
Class PlayGame
java.lang.Object
|
+--edu.lhup.ai.PlayGame
- class PlayGame
- extends Object
Run this class in order to play a game! You will need a
configuration file that contains the information specifying
the game you want to play, and the player's that you want to play. Once
you have created a configuration file you can play the game as follows:
java -cp ai.jar edu.lhup.ai.PlayGame PlayGameConfig.xml
This software is for educational purposes only.
- Author:
- Mark Cohen
|
Constructor Summary |
(package private) |
PlayGame()
|
|
Method Summary |
static void |
main(String[] args)
The main method that launches a game. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayGame
PlayGame()
main
public static void main(String[] args)
throws StateException,
IOException,
TurnException
- The main method that launches a game.
- Parameters:
args - a String array that contains the command line arguments.
This method expects a single command line argument that contains the
complete path and filename for a configuration file.
- Throws:
IOException - if the configuration file cannot be found.
StateException - if the configuration file specifies an invalid
game or players.
TurnException - if an invalid turn is made by either of the
players