Strategická: Načti time_to_response
This commit is contained in:
parent
443d1b99fe
commit
96202675e8
2 changed files with 2 additions and 1 deletions
|
@ -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."""
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue