public class Agent extends AbstractMultiPlayer
Modifier and Type | Field and Description |
---|---|
Types.ACTIONS[][] |
actions |
int |
id |
protected SingleMCTSPlayer |
mctsPlayer |
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.
|
SingleMCTSPlayer |
getPlayer(StateObservationMulti so,
ElapsedCpuTimer elapsedTimer,
int[] NUM_ACTIONS,
Types.ACTIONS[][] actions,
int id,
int oppID,
int no_players) |
act
draw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardown
public int[] NUM_ACTIONS
public Types.ACTIONS[][] actions
public int id
public int oppID
public int no_players
protected SingleMCTSPlayer mctsPlayer
public Agent(StateObservationMulti so, ElapsedCpuTimer elapsedTimer, int playerID)
so
- state observation of the current game.elapsedTimer
- Timer for the controller creation.public SingleMCTSPlayer getPlayer(StateObservationMulti so, ElapsedCpuTimer elapsedTimer, int[] NUM_ACTIONS, Types.ACTIONS[][] actions, int id, int oppID, int no_players)
public Types.ACTIONS act(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer)