Source code for bot_api.game_setup

from dataclasses import dataclass


[docs] @dataclass(frozen=True) class GameSetup: """Game setup retrieved when game is started.""" game_type: str """Game type, e.g. "melee".""" arena_width: int """Width of the arena measured in units.""" arena_height: int """Height of the arena measured in units.""" number_of_rounds: int """Number of rounds in a battle.""" gun_cooling_rate: float """Gun cooling rate. The gun needs to cool down to a gun heat of zero before the gun is able to fire.""" max_inactivity_turns: int """Maximum number of inactive turns allowed, where a bot does not take any action before it is zapped by the game.""" turn_timeout: int """The turn timeout in microseconds (µs) (where 1 microsecond equals 1/1,000,000 of a second).""" ready_timeout: int """The ready timeout in microseconds (µs) (where 1 microsecond equals 1/1,000,000 of a second)."""