public class Agent extends AbstractPlayer
Modifier and Type | Field and Description |
---|---|
static double |
nonMoveProb
probability it will react to not hit walls
|
static double |
surpriseProb
probability it will react to surprise
|
Constructor and Description |
---|
Agent(StateObservation stateObs,
ElapsedCpuTimer elapsedTimer)
Initialize the parameters and construct the automated player
|
Modifier and Type | Method and Description |
---|---|
Types.ACTIONS |
act(StateObservation stateObs,
ElapsedCpuTimer elapsedTimer)
decide the next action to be done (either repeating same action or nil or
deciding new action)
|
act
draw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardown
public static double surpriseProb
public static double nonMoveProb
public Agent(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)
stateObs
- Observation of the current state.elapsedTimer
- Timer when the action returned is due.public Types.ACTIONS act(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)