public class Agent extends AbstractMultiPlayer
Modifier and Type | Field and Description |
---|---|
static double |
epsilon |
static java.util.Random |
m_rnd |
Constructor and Description |
---|
Agent(StateObservationMulti stateObs,
ElapsedCpuTimer elapsedTimer,
int playerID)
initialize all variables for the agent
|
Modifier and Type | Method and Description |
---|---|
Types.ACTIONS |
act(StateObservationMulti stateObs,
ElapsedCpuTimer elapsedTimer)
Very simple one step lookahead agent.
|
act
draw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardown
public Agent(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer, int playerID)
stateObs
- Observation of the current state.elapsedTimer
- Timer when the action returned is due.playerID
- ID if this agentpublic Types.ACTIONS act(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer)