org.jscience.computing.game
Class TemplatePlayer.MoveEvaluater

java.lang.Object
  extended by org.jscience.computing.game.TemplatePlayer.MoveEvaluater
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TemplatePlayer

protected class TemplatePlayer.MoveEvaluater
extends java.lang.Object
implements java.lang.Runnable

MoveEvaluater is used by the method selectMove() from the enclosing TemplatePLayer class in case of a time-limited search to allow each move to be examined efficiently in a separate thread.

Since:
3/26/2002
See Also:
TemplatePlayer.selectMove(GamePlay,int[],int,long), TemplatePlayer.Synchronizer

Constructor Summary
TemplatePlayer.MoveEvaluater(TemplatePlayer.Synchronizer synch, GamePlay game, GameMove move, int[] role, int level, long milliseconds, Monitor monitor)
           
 
Method Summary
 void run()
          reports the heuristic (calculated by the evaluate() method) to the Synchronizer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplatePlayer.MoveEvaluater

public TemplatePlayer.MoveEvaluater(TemplatePlayer.Synchronizer synch,
                                    GamePlay game,
                                    GameMove move,
                                    int[] role,
                                    int level,
                                    long milliseconds,
                                    Monitor monitor)
Method Detail

run

public void run()
reports the heuristic (calculated by the evaluate() method) to the Synchronizer

Specified by:
run in interface java.lang.Runnable
See Also:
TemplatePlayer.evaluate(GamePlay,GameMove,int[],int,long,Monitor), TemplatePlayer.Synchronizer