public class MonteCarloRatioPlayer extends AbstractMonteCarloPlayer
Player.boardType, Player.playerType
Constructor and Description |
---|
MonteCarloRatioPlayer()
construct a new monte carlo player
|
Modifier and Type | Method and Description |
---|---|
protected void |
addScore(GameState gs,
int i)
add the score after each trial
|
protected double |
calculateScore(int i)
calculate the score after all trials finished
|
protected void |
initializeRatio()
each trial starts with ratio = 1
|
protected void |
initializeScore(int i)
initialize the scores before all trials are started
|
protected void |
updateRatio(GameState gs,
java.util.Set<Move> moves)
opponent moves are taxing the ratio depending on the state neighborhood size
|
move
isComputer, otherMoved, ratioTimeLeft, setMaximumNumberOfNodes, setMaxTime, setPlayerNumber, startMove, timeUsed
public MonteCarloRatioPlayer()
protected void initializeRatio()
initializeRatio
in class AbstractMonteCarloPlayer
protected void updateRatio(GameState gs, java.util.Set<Move> moves)
updateRatio
in class AbstractMonteCarloPlayer
protected void initializeScore(int i)
initializeScore
in class AbstractMonteCarloPlayer
protected void addScore(GameState gs, int i)
addScore
in class AbstractMonteCarloPlayer
protected double calculateScore(int i)
calculateScore
in class AbstractMonteCarloPlayer