|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--HumanMancalaPlayer
HumanMancalaPlayer - an agent relying entirely
upon human intelligence for decision making through a simple
text
| Field Summary | |
java.io.BufferedReader |
reader
|
| Constructor Summary | |
HumanMancalaPlayer()
HumanMancalaPlayer constructor. |
|
| Method Summary | |
int |
chooseMove(MancalaNode node,
long timeRemaining)
Display remaining time, legal moves and query user until legal move is entered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.io.BufferedReader reader
| Constructor Detail |
public HumanMancalaPlayer()
| Method Detail |
public int chooseMove(MancalaNode node,
long timeRemaining)
chooseMove in interface MancalaPlayerMancalaPlayernode - a MancalaNode value - the node to
choose a move fromtimeRemaining - a long value - your
entire game time remaining in milliseconds. If your time
runs out, you lose.int value - the encoding of the
legal move to take at the current node
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||