games.sy
Class ScotlandYardPlayer

java.lang.Object
  extended by games.sy.ScotlandYardPlayer
Direct Known Subclasses:
GreedyUCTPlayer

public abstract class ScotlandYardPlayer
extends java.lang.Object


Field Summary
protected  int id
           
 
Constructor Summary
ScotlandYardPlayer(int id)
          Constructs a new player with a given id.
 
Method Summary
abstract  int getBestMove(ScotlandYard board)
          Returns the best move according to the player given the game position
 void setId(int id)
           
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected int id
Constructor Detail

ScotlandYardPlayer

public ScotlandYardPlayer(int id)
Constructs a new player with a given id. The player can be ScotlandYard.MR_X, ScotlandYard.DETECTIVE1, ScotlandYard.DETECTIVE2, ScotlandYard.DETECTIVE3, ScotlandYard.DETECTIVE4 or ScotlandYard.DETECTIVE5

Parameters:
id -
Method Detail

setId

public void setId(int id)

getBestMove

public abstract int getBestMove(ScotlandYard board)
Returns the best move according to the player given the game position

Parameters:
board -
Returns:

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object