games.sy
Class GreedyUCTPlayer
java.lang.Object
games.sy.ScotlandYardPlayer
games.sy.GreedyUCTPlayer
public class GreedyUCTPlayer
- extends ScotlandYardPlayer
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
-
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