public class Agent extends AbstractPlayer
Modifier and Type | Field and Description |
---|---|
protected PathFinder |
pathf |
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
protected PathFinder pathf
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)