public class MonteCarloSearch extends MCTSPredictor
Created by piers on 20/12/16.
agentID, agentsDEFAULT_ITERATIONS, DEFAULT_ROLLOUT_DEPTH, DEFAULT_TREE_DEPTH_MUL, logger, NO_LIMIT, random, rolloutDepth, roundLength, treeDepthMul| Constructor and Description |
|---|
MonteCarloSearch(Agent policy)
Constructs a new MC Search player with the given policy to use
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateTreeDepthLimit(GameState state) |
Action |
doMove(int agentID,
GameState state)
Standardised interface for game playing agents.
|
protected Action |
selectActionForRollout(GameState state,
int agentID) |
String |
toString() |
buildPMCTSND, doSuperMove, parseAgents, select, selectActionForExpandbuildMCTSND, expand, rolloutpublic MonteCarloSearch(Agent policy)
policy - The policy to use instead of Random rolloutspublic Action doMove(int agentID, GameState state)
AgentThe agent gets a copy of the game state and it's agent ID and should return a move.
doMove in interface AgentdoMove in class MCTSPredictoragentID - the ID of this agentstate - the current state of the gameprotected Action selectActionForRollout(GameState state, int agentID)
selectActionForRollout in class MCTSPredictorprotected int calculateTreeDepthLimit(GameState state)
calculateTreeDepthLimit in class MCTSpublic String toString()
toString in class MCTSPredictorCopyright © 2017 FOSS Galaxy. All rights reserved.