|
Othello 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.drexel.cs.ai.othello.OthelloPlayer
edu.drexel.cs.ai.othello.HumanOthelloPlayer
public final class HumanOthelloPlayer
An interface for having a human play othello through the user interface.
| Constructor Summary | |
|---|---|
HumanOthelloPlayer(java.lang.String name)
Creates a new agent that plays according to human input. |
|
| Method Summary | |
|---|---|
Square |
getMove(GameState currentState,
java.util.Date deadline)
Returns the next move as input by the human from the UI. |
void |
handleUIInput(Square square)
Callback function for receiving the next move from the UI. |
| Methods inherited from class edu.drexel.cs.ai.othello.OthelloPlayer |
|---|
getMillisUntilDeadline, getName, log, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HumanOthelloPlayer(java.lang.String name)
| Method Detail |
|---|
public void handleUIInput(Square square)
public Square getMove(GameState currentState,
java.util.Date deadline)
handleUIInput(Square) with the next move. Also, the
HumanOthelloPlayer agent will always have an infinite deadline.
getMove in class OthelloPlayer
|
Othello 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||