public class Agent extends AbstractPlayer
| 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 |
setActions(java.util.ArrayList<Types.ACTIONS> actionsToLoad)
Loads the action from the contents of the object received as parameter.
|
actdraw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardownpublic Agent(StateObservation so, ElapsedCpuTimer elapsedTimer)
so - state observation of the current game.elapsedTimer - Timer for the controller creation.public void setActions(java.util.ArrayList<Types.ACTIONS> actionsToLoad)
actionsToLoad - ArrayList of actions to execute.public Types.ACTIONS act(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)