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
|
moveisComputer, otherMoved, ratioTimeLeft, setMaximumNumberOfNodes, setMaxTime, setPlayerNumber, startMove, timeUsedpublic MonteCarloRatioPlayer()
protected void initializeRatio()
initializeRatio in class AbstractMonteCarloPlayerprotected void updateRatio(GameState gs, java.util.Set<Move> moves)
updateRatio in class AbstractMonteCarloPlayerprotected void initializeScore(int i)
initializeScore in class AbstractMonteCarloPlayerprotected void addScore(GameState gs, int i)
addScore in class AbstractMonteCarloPlayerprotected double calculateScore(int i)
calculateScore in class AbstractMonteCarloPlayer