|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--TnellerMancalaPlayer
TnellerMancalaPlayer - My simple implementation of a mancala player with a simple, messy hack for distributing game-play.
| Constructor Summary | |
TnellerMancalaPlayer()
|
|
| Method Summary | |
int |
chooseMove(MancalaNode node,
long timeRemaining)
Choose a move for the given game situation given play time remaining. |
int |
piecesRemaining(MancalaNode node)
Returns the number of pieces not yet captured. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TnellerMancalaPlayer()
| 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 nodepublic int piecesRemaining(MancalaNode node)
node - gameTreeSearch.MancalaNode
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||