Class HistoryAnalysis

java.lang.Object
com.takenoko.bot.utils.HistoryAnalysis

public class HistoryAnalysis extends Object
Class that analyses the history of a game.
  • 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

      public static Map<UUID,Integer> getCurrentBotScores(History history)
      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

      public static int getMaxCurrentBotScore(History history)
      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

      public static GameProgress getGameProgress(History history)
      Calculate the game progress as an LinkGameProgress Enum.
      Parameters:
      history - the history to analyse
      Returns:
      the game progress as an LinkGameProgress Enum.
    • analyzeRushPanda

      static Map<UUID,Boolean> analyzeRushPanda(History history, double threshold)
      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

      public static Map<UUID,Boolean> analyzeRushPanda(History history)