Strategická: Načti time_to_response

This commit is contained in:
David Klement 2022-09-18 15:13:45 +02:00
parent 443d1b99fe
commit 96202675e8
2 changed files with 2 additions and 1 deletions

View file

@ -76,7 +76,7 @@ def get_command(args) -> List[str]:
def run_subprocess( def run_subprocess(
command: List[str], state_json: str, timeout: Optional[float] command: List[str], state_json: str, timeout: Optional[int]
) -> Optional[str]: ) -> Optional[str]:
"""Run user program and return its output.""" """Run user program and return its output."""

View file

@ -34,6 +34,7 @@ class State:
self.world = parse_world(state["state"]["world"]) self.world = parse_world(state["state"]["world"])
self.my_team_id: int = state["team_id"] self.my_team_id: int = state["team_id"]
self.round_number: int = state["round"] self.round_number: int = state["round"]
self.time_to_response: Optional[int] = state["time_to_response"]
state: State state: State