public class Agent extends AbstractPlayer
| Modifier and Type | Field and Description |
|---|---|
Types.ACTIONS[] |
actions |
protected SingleMCTSPlayer |
mctsPlayer |
int |
num_actions |
| 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.
|
SingleMCTSPlayer |
getPlayer(StateObservation so,
ElapsedCpuTimer elapsedTimer) |
actdraw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardownpublic int num_actions
public Types.ACTIONS[] actions
protected SingleMCTSPlayer mctsPlayer
public Agent(StateObservation so, ElapsedCpuTimer elapsedTimer)
so - state observation of the current game.elapsedTimer - Timer for the controller creation.public SingleMCTSPlayer getPlayer(StateObservation so, ElapsedCpuTimer elapsedTimer)
public Types.ACTIONS act(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)