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
|
moveisComputer, otherMoved, ratioTimeLeft, setMaximumNumberOfNodes, setMaxTime, setPlayerNumber, startMove, timeUsedpublic MonteCarloRatioPlayer2()
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