games.sy
Class GreedyUCTPlayer

java.lang.Object
  extended by games.sy.ScotlandYardPlayer
      extended by games.sy.GreedyUCTPlayer

public class GreedyUCTPlayer
extends ScotlandYardPlayer


Field Summary
 
Fields inherited from class games.sy.ScotlandYardPlayer
id
 
Constructor Summary
GreedyUCTPlayer(int id)
          Creates a GreedyUCTPlayer with given id and default thinking time (5 seconds)
GreedyUCTPlayer(int id, int time)
          Creates a GreedyUCTPlayer with given id and thinking time (in ms)
GreedyUCTPlayer(int id, java.util.Properties props)
          Creates a GreedyUCTPlayer with given id and properties
 
Method Summary
 int getBestMove(ScotlandYard board)
          Returns the best move according to the player given the game position
 java.lang.String toString()
           
 
Methods inherited from class games.sy.ScotlandYardPlayer
setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GreedyUCTPlayer

public GreedyUCTPlayer(int id)
Creates a GreedyUCTPlayer with given id and default thinking time (5 seconds)

Parameters:
id -

GreedyUCTPlayer

public GreedyUCTPlayer(int id,
                       int time)
Creates a GreedyUCTPlayer with given id and thinking time (in ms)

Parameters:
id -

GreedyUCTPlayer

public GreedyUCTPlayer(int id,
                       java.util.Properties props)
Creates a GreedyUCTPlayer with given id and properties

Parameters:
id -
props -
Method Detail

getBestMove

public int getBestMove(ScotlandYard board)
Description copied from class: ScotlandYardPlayer
Returns the best move according to the player given the game position

Specified by:
getBestMove in class ScotlandYardPlayer
Returns:

toString

public java.lang.String toString()
Specified by:
toString in class ScotlandYardPlayer