public abstract class AbstractMonteCarloPlayer extends Player
Player.boardType, Player.playerType
Constructor and Description |
---|
AbstractMonteCarloPlayer() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addScore(GameState gs,
int i)
add to the scores depending on the game result of this trial
|
protected abstract double |
calculateScore(int i)
calculate the score of the player after all trials ended
|
protected abstract void |
initializeRatio()
initialize ratio that is specific for one trial
|
protected abstract void |
initializeScore(int i)
initialize the scores of all players before starting the trials
|
Move |
move(GameState state,
java.util.ArrayList<Move> allowedMoves)
make a move.
|
protected abstract void |
updateRatio(GameState gs,
java.util.Set<Move> moves)
update the ratio depending on the branching in the current state
|
isComputer, otherMoved, ratioTimeLeft, setMaximumNumberOfNodes, setMaxTime, setPlayerNumber, startMove, timeUsed
public Move move(GameState state, java.util.ArrayList<Move> allowedMoves) throws java.lang.Exception
protected abstract void addScore(GameState gs, int i)
protected abstract double calculateScore(int i)
protected abstract void initializeScore(int i)
protected abstract void initializeRatio()