Class GameResult

java.lang.Object
com.codingame.gameengine.runner.simulate.GameResult

public class GameResult extends Object
A data class for the result of one game launch. Can be exploited for batch testing your game locally.

Each frame is divided in as many subframes as their are player agents + one initialisation subframe.

  • Field Details

    • errors

      public Map<String,List<String>> errors
      Map each agent to its error output of each subframe. A player agent's key will be its index, the game code's key will be "referee".
    • outputs

      public Map<String,List<String>> outputs
      Map each agent to its standard output of each subframe. A player agent's key will be its index, the game code's key will be "referee".
    • summaries

      public List<String> summaries
      The game summary output by the GameManager for each subframe.
    • views

      public List<String> views
      The view output from modules for each subframe. Each string will be a JSON Object mapping each module's name with the serialized version of their output.
    • scores

      public Map<Integer,Integer> scores
      Maps each player agent with the score returned by getScore from your implementation of AbstractPlayer.
    • gameParameters

      public List<String> gameParameters

      For multiplayer games: a list of properties in the form key=value generated from GameManager.getGameParameters after the game's end.

      For solo games: the lines of text in the given testcase.
    • metadata

      public String metadata
      A serialised JSON of anything stored in this game launch's metadata with GameManager.putMetaData.
    • failCause

      public String failCause
      Any uncaught Exception that caused the game launch to crash. Includes stacktrace.
    • tooltips

      public List<TooltipData> tooltips
      The list of tooltips generated during this game launch.
    • agents

      public List<AgentData> agents
      The list of player agents used for this game launch.
  • Constructor Details

    • GameResult

      public GameResult()