public class Agent extends AbstractPlayer
Modifier and Type | Field and Description |
---|---|
static Types.ACTIONS[] |
actions |
static double |
K |
static int |
NUM_ACTIONS |
static double[] |
parameters |
static int |
ROLLOUT_DEPTH |
static double |
safetyMargin |
static UCBEquation |
ucb |
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.
|
void |
result(StateObservation stateObservation,
ElapsedCpuTimer elapsedCpuTimer)
Function called when the game is over.
|
act
draw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, resultMulti, setPlayerID, setup, teardown
public static int NUM_ACTIONS
public static int ROLLOUT_DEPTH
public static double K
public static Types.ACTIONS[] actions
public static UCBEquation ucb
public static double[] parameters
public static double safetyMargin
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)
public void result(StateObservation stateObservation, ElapsedCpuTimer elapsedCpuTimer)