public class Agent extends AbstractMultiPlayer
Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
randomGenerator |
Constructor and Description |
---|
Agent(StateObservationMulti stateObs,
ElapsedCpuTimer elapsedTimer,
int playerID)
Public constructor with state observation and time due.
|
Modifier and Type | Method and Description |
---|---|
Types.ACTIONS |
act(StateObservationMulti stateObs,
ElapsedCpuTimer elapsedTimer)
Picks an action.
|
void |
draw(java.awt.Graphics2D g)
Gets the player the control to draw something on the screen.
|
act
getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardown
public Agent(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer, int playerID)
stateObs
- state observation of the current game.elapsedTimer
- Timer for the controller creation.public Types.ACTIONS act(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer)