Skip to content

SimplifiedGame

python
class SimplifiedGame(BaseModel):
    me: Optional[SimplifiedPlayer]
    players: Dict[PlayerID, SimplifiedPlayer]
    leaderboard: ConquerHackLeaderboard
    ticks: Tick
java
public class SimplifiedGame {
    @Nullable public SimplifiedPlayer me;
    @NotNull public Map<@NotNull PlayerID, @NotNull SimplifiedPlayer> players;
    @NotNull public ConquerHackLeaderboard leaderboard;
    @NotNull public Tick ticks;
}

Encapsulates information about the current state of an ongoing game, simplified to only include the most relevant information for bots.

You can retrieve an instance of this class representing the current game state by using get_cached_state() or get_fresh_state() from the bot's controller.

Attributes

AttributeTypeDescription
meSimplifiedPlayer or None/nullInformation about the bot's player in the game. You can expect this to be non-None/non-null while inside your game loop, except if your player has been eliminated.
playersDict mapping PlayerID to SimplifiedPlayerA mapping from player IDs to information about each player in the game.
leaderboardConquerHackLeaderboardInformation about the ConquerHack leaderboard.
ticksTickThe current number of ticks that have elapsed in the game.