public class TextDriver
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
TextDriver.TextHumanPlayer |
| Modifier and Type | Field and Description |
|---|---|
protected Backgammon |
backgammon |
protected java.lang.Thread |
game |
protected Move |
move |
protected TextDriver.TextHumanPlayer |
player |
protected java.io.StreamTokenizer |
tokenizer |
| Constructor and Description |
|---|
TextDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
gameOver() |
protected void |
go() |
protected void |
handleCommand(java.lang.String command) |
protected void |
handleHelpCommand() |
protected void |
handleListCommand() |
protected void |
handleMoveCommand() |
protected Movement |
handleMoveCommandHelper() |
protected void |
handlePrintCommand() |
protected void |
handleResetCommand() |
protected void |
handleUndoCommand() |
static void |
main(java.lang.String[] args) |
protected Backgammon backgammon
protected java.io.StreamTokenizer tokenizer
protected TextDriver.TextHumanPlayer player
protected Move move
protected java.lang.Thread game
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionprotected void go()
throws java.io.IOException
java.io.IOExceptionprotected void handleCommand(java.lang.String command)
throws UnrecognizedCommandException,
java.io.IOException
UnrecognizedCommandExceptionjava.io.IOExceptionprotected void handleHelpCommand()
protected void handleResetCommand()
protected void handleListCommand()
protected void handlePrintCommand()
protected void handleUndoCommand()
protected void handleMoveCommand()
throws java.io.IOException
java.io.IOExceptionprotected void gameOver()
protected Movement handleMoveCommandHelper() throws java.io.IOException
java.io.IOException