From 96202675e8eae3ec2e7b13d9617b896a3f7ffcc2 Mon Sep 17 00:00:00 2001 From: kulisak12 Date: Sun, 18 Sep 2022 15:13:45 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Na=C4=8Dti=20time=5Fto=5Fre?= =?UTF-8?q?sponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klient/client.py | 2 +- klient/play.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/klient/client.py b/klient/client.py index a64ddba..8cb15da 100644 --- a/klient/client.py +++ b/klient/client.py @@ -76,7 +76,7 @@ def get_command(args) -> List[str]: def run_subprocess( - command: List[str], state_json: str, timeout: Optional[float] + command: List[str], state_json: str, timeout: Optional[int] ) -> Optional[str]: """Run user program and return its output.""" diff --git a/klient/play.py b/klient/play.py index b1667b9..4c68f0c 100755 --- a/klient/play.py +++ b/klient/play.py @@ -34,6 +34,7 @@ class State: self.world = parse_world(state["state"]["world"]) self.my_team_id: int = state["team_id"] self.round_number: int = state["round"] + self.time_to_response: Optional[int] = state["time_to_response"] state: State