|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcore.Player
public abstract class Player
Represents an abstract player that can make moves.
color : Color // the color of the player| Constructor Summary | |
|---|---|
Player(Color color)
Creates a new player of that color |
|
| Method Summary | |
|---|---|
abstract Move |
askForMove(Move opponentsMove)
Gets the next move of the player, given the opponents move. |
Move |
askForMove(Move opponentsMove,
long timeRemainingInMillis,
long opponentTimeRemainingInMillis)
|
Color |
getColor()
|
String |
getMove(String lastMove,
long timeRemainingInMillis,
long opponentTimeRemainingInMillis)
|
byte[] |
getPersistentState()
Filler for now |
abstract void |
update(Game game)
Has the player make a series of moves. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Player(Color color)
color - of the player| Method Detail |
|---|
public abstract Move askForMove(Move opponentsMove)
opponentsMove - the opponents move
public Move askForMove(Move opponentsMove,
long timeRemainingInMillis,
long opponentTimeRemainingInMillis)
public String getMove(String lastMove,
long timeRemainingInMillis,
long opponentTimeRemainingInMillis)
getMove in interface net.antichess.ai.AiPlayerPiecepublic byte[] getPersistentState()
getPersistentState in interface net.antichess.ai.AiPlayerpublic Color getColor()
public abstract void update(Game game)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||