Class GameResult
java.lang.Object
com.codingame.gameengine.runner.simulate.GameResult
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 Summary
Modifier and TypeFieldDescriptionThe list of player agents used for this game launch.Map each agent to its error output of each subframe.Any uncaught Exception that caused the game launch to crash.For multiplayer games: a list of properties in the formkey=value
generated fromGameManager.getGameParameters
after the game's end.A serialised JSON of anything stored in this game launch's metadata withGameManager.putMetaData
.Map each agent to its standard output of each subframe.Maps each player agent with the score returned bygetScore
from your implementation of AbstractPlayer.The game summary output by the GameManager for each subframe.The list of tooltips generated during this game launch.The view output from modules for each subframe. -
Constructor Summary
-
Method Summary
-
Field Details
-
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
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
The game summary output by the GameManager for each subframe. -
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
Maps each player agent with the score returned bygetScore
from your implementation of AbstractPlayer. -
gameParameters
For multiplayer games: a list of properties in the form
For solo games: the lines of text in the given testcase.key=value
generated fromGameManager.getGameParameters
after the game's end. -
metadata
A serialised JSON of anything stored in this game launch's metadata withGameManager.putMetaData
. -
failCause
Any uncaught Exception that caused the game launch to crash. Includes stacktrace. -
tooltips
The list of tooltips generated during this game launch. -
agents
The list of player agents used for this game launch.
-
-
Constructor Details
-
GameResult
public GameResult()
-