Class TnellerMancalaPlayer

java.lang.Object
  |
  +--TnellerMancalaPlayer
All Implemented Interfaces:
MancalaPlayer

public class TnellerMancalaPlayer
extends java.lang.Object
implements MancalaPlayer

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

TnellerMancalaPlayer

public TnellerMancalaPlayer()
Method Detail

chooseMove

public int chooseMove(MancalaNode node,
                      long timeRemaining)
Choose a move for the given game situation given play time remaining.
Specified by:
chooseMove in interface MancalaPlayer
Following copied from interface: MancalaPlayer
Parameters:
node - a MancalaNode value - the node to choose a move from
timeRemaining - a long value - your entire game time remaining in milliseconds. If your time runs out, you lose.
Returns:
an int value - the encoding of the legal move to take at the current node

piecesRemaining

public int piecesRemaining(MancalaNode node)
Returns the number of pieces not yet captured. Creation date: (10/11/00 8:14:08 PM)
Parameters:
node - gameTreeSearch.MancalaNode
Returns:
int