public class MonteCarloRatioPlayer2 extends AbstractMonteCarloPlayer
Player.boardType, Player.playerType
Constructor and Description |
---|
MonteCarloRatioPlayer2()
construct this type of monte-carlo player
|
Modifier and Type | Method and Description |
---|---|
protected void |
addScore(GameState gs,
int i)
add the current trial to the overall scores
|
protected double |
calculateScore(int i)
calculate the resulting scores after all trials completed
|
protected void |
initializeRatio()
initialize the ratio at the beginning of each trial
|
protected void |
initializeScore(int i)
initialize the scores before all trials are started
|
protected void |
updateRatio(GameState gs,
java.util.Set<Move> moves)
update the current trial ratio every time a move is made
|
move
isComputer, otherMoved, ratioTimeLeft, setMaximumNumberOfNodes, setMaxTime, setPlayerNumber, startMove, timeUsed
public MonteCarloRatioPlayer2()
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