public class Agent extends AbstractMultiPlayer
| Modifier and Type | Field and Description |
|---|---|
Types.ACTIONS[][] |
actions |
int |
id |
int |
no_players |
int[] |
NUM_ACTIONS |
int |
oppID |
| Constructor and Description |
|---|
Agent(StateObservationMulti so,
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 |
result(StateObservation stateObservation,
ElapsedCpuTimer elapsedCpuTimer)
Function called when the game is over.
|
actdraw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, resultMulti, setPlayerID, setup, teardownpublic int[] NUM_ACTIONS
public Types.ACTIONS[][] actions
public int id
public int oppID
public int no_players
public Agent(StateObservationMulti so, ElapsedCpuTimer elapsedTimer, int playerID)
so - state observation of the current game.elapsedTimer - Timer for the controller creation.playerID - ID if this agentpublic Types.ACTIONS act(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer)
public void result(StateObservation stateObservation, ElapsedCpuTimer elapsedCpuTimer)