|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgames.sy.ScotlandYardPlayer
public abstract class ScotlandYardPlayer
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 |
---|
protected int id
Constructor Detail |
---|
public ScotlandYardPlayer(int id)
id
- Method Detail |
---|
public void setId(int id)
public abstract int getBestMove(ScotlandYard board)
board
-
public abstract java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |