public class Agent extends AbstractPlayer
Modifier and Type | Field and Description |
---|---|
Types.ACTIONS[] |
actions
Feasible actions array, of length NUM_ACTIONS
|
SingleMCTSPlayer |
mctsPlayer
The Monte Carlo Tree Search agent - the core of the algorithm
|
int |
NUM_ACTIONS
Number of feasible actions (usually from 2 to 5)
|
Constructor and Description |
---|
Agent(StateObservation so,
ElapsedCpuTimer elapsedTimer)
Public constructor with state observation and time due.
|
Modifier and Type | Method and Description |
---|---|
Types.ACTIONS |
act(StateObservation stateObs,
ElapsedCpuTimer elapsedTimer)
Picks an action.
|
act
draw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardown
public int NUM_ACTIONS
public Types.ACTIONS[] actions
public SingleMCTSPlayer mctsPlayer
public Agent(StateObservation so, ElapsedCpuTimer elapsedTimer)
so
- state observation of the current game.elapsedTimer
- Timer for the controller creation.public Types.ACTIONS act(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)