SimplifiedGame
python
class SimplifiedGame(BaseModel):
me: Optional[SimplifiedPlayer]
players: Dict[PlayerID, SimplifiedPlayer]
leaderboard: ConquerHackLeaderboard
ticks: Tickjava
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
| Attribute | Type | Description |
|---|---|---|
me | SimplifiedPlayer or None/null | Information 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. |
players | Dict mapping PlayerID to SimplifiedPlayer | A mapping from player IDs to information about each player in the game. |
leaderboard | ConquerHackLeaderboard | Information about the ConquerHack leaderboard. |
ticks | Tick | The current number of ticks that have elapsed in the game. |
