Browse Source

Strategická: Načti time_to_response

master
David Klement 2 years ago
parent
commit
96202675e8
  1. 2
      klient/client.py
  2. 1
      klient/play.py

2
klient/client.py

@ -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."""

1
klient/play.py

@ -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…
Cancel
Save