public class App extends Object
Modifier and Type | Field and Description |
---|---|
static String |
IGGI_RISKY |
static String |
MCTS |
static String |
PREDICTOR_MCTS |
static String |
PREDICTOR_MCTSND |
Modifier and Type | Method and Description |
---|---|
static Agent |
buildAgent(String name,
double threshold)
Builds a risky agent with a given threshold
|
static Agent |
buildAgent(String name,
int agentID,
int[] model) |
static Agent |
buildAgent(String name,
int roundLength,
int rolloutDepth,
int treeDepth)
Allows for creating MCTS specifically with some fields
|
static Agent |
buildAgent(String name,
int agentID,
String[] paired)
Build an agent
|
static Agent |
buildAgent(String name,
int agentID,
String paired,
int size)
Build an agent
|
static Agent |
buildAgent(String name,
int agentID,
String paired,
int size,
int roundLength,
int rolloutDepth,
int treeDepth)
Allows for creating Predictor MCTS with some fields
|
static void |
main(String[] args)
Plays a series of games with a single agent mixed with another agent
|
static GameStats |
playGame(String agent)
Plays a game with the given agent
|
static GameStats |
playMixed(String agentUnderTest,
String agent)
Plays a mixed game with the agent under test and all other agents as the agent
|
public static final String PREDICTOR_MCTS
public static final String IGGI_RISKY
public static final String MCTS
public static final String PREDICTOR_MCTSND
public static void main(String[] args)
args
- Ignoredpublic static GameStats playGame(String agent)
agent
- The given agent to play the gamepublic static GameStats playMixed(String agentUnderTest, String agent)
agentUnderTest
- The agent to be player 0agent
- The agent to make all the otherspublic static Agent buildAgent(String name, int agentID, String paired, int size)
name
- The name the agent will believe it hasagentID
- The AgentID it will havepaired
- Who it is paired withsize
- The size of the gamepublic static Agent buildAgent(String name, int agentID, String[] paired)
name
- The name the agent will believe it hasagentID
- The AgentID it will havepaired
- Who it is paired withpublic static Agent buildAgent(String name, int roundLength, int rolloutDepth, int treeDepth)
name
- The name of the agentroundLength
- The round length to use for MCTSrolloutDepth
- The rollout depth to use for MCTStreeDepth
- The tree depth to use for MCTSpublic static Agent buildAgent(String name, int agentID, String paired, int size, int roundLength, int rolloutDepth, int treeDepth)
name
- The name for the agentagentID
- The agent idpaired
- Who the agent is paired withsize
- The size of the gameroundLength
- The round length to use for MCTSrolloutDepth
- The rollout depth to use for MCTStreeDepth
- The tree depth to use for MCTSCopyright © 2017 FOSS Galaxy. All rights reserved.