Package com.takenoko.bot.utils
Class HistoryAnalysis
java.lang.Object
com.takenoko.bot.utils.HistoryAnalysis
Class that analyses the history of a game.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
private static final double
private static final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzeRushPanda
(History history) analyzeRushPanda
(History history, double threshold) Analyse the history and determine the bots which are using the Rush Panda strategy.getCurrentBotScores
(History history) Retrieves the current score for each bot manager in the history.static GameProgress
getGameProgress
(History history) Calculate the game progress as an LinkGameProgress
Enum.static int
getMaxCurrentBotScore
(History history) Calculates the maximum current score of all bot managers in the history.
-
Field Details
-
MID_GAME_THRESHOLD
private static final double MID_GAME_THRESHOLD- See Also:
-
LATE_GAME_THRESHOLD
private static final double LATE_GAME_THRESHOLD- See Also:
-
DEFAULT_RUSH_PANDA_THRESHOLD
public static final double DEFAULT_RUSH_PANDA_THRESHOLD- See Also:
-
-
Constructor Details
-
HistoryAnalysis
private HistoryAnalysis()
-
-
Method Details
-
getCurrentBotScores
Retrieves the current score for each bot manager in the history.- Parameters:
history
- the history to analyse- Returns:
- a map of the current score for each bot manager in the history.
-
getMaxCurrentBotScore
Calculates the maximum current score of all bot managers in the history.- Parameters:
history
- the history to analyse- Returns:
- the maximum current score of all bot managers in the history.
-
getGameProgress
Calculate the game progress as an LinkGameProgress
Enum.- Parameters:
history
- the history to analyse- Returns:
- the game progress as an Link
GameProgress
Enum.
-
analyzeRushPanda
Analyse the history and determine the bots which are using the Rush Panda strategy.- Parameters:
history
- the history to analyse- Returns:
- a map of the bot managers which are using the Rush Panda strategy.
-
analyzeRushPanda
-