Interface GameTreeSearcher

All Known Implementing Classes:
MinimaxSearcher

public interface GameTreeSearcher

GameTreeSearcher.java - a simple interface for a game-tree search class Created: Wed Oct 16 16:44:00 2002


Method Summary
 double eval(GameNode node)
          eval - Returns the estimated minimax value of the given node.
 int getBestMove()
          getBestMove - Returns the best move for the node most recently evaluated.
 int getNodeCount()
          getNodeCount - Returns the number of nodes searched for the previous node evaluation
 

Method Detail

eval

public double eval(GameNode node)
eval - Returns the estimated minimax value of the given node.
Parameters:
node - a GameNode value
Returns:
a double value - estimated minimax value of node

getBestMove

public int getBestMove()
getBestMove - Returns the best move for the node most recently evaluated.
Returns:
an int value encoding the move

getNodeCount

public int getNodeCount()
getNodeCount - Returns the number of nodes searched for the previous node evaluation
Returns:
an int value - number of nodes searched