From 36c1072d401c7367ae08be55d7e2eb3efe96cff0 Mon Sep 17 00:00:00 2001 From: kulisak12 Date: Sun, 18 Sep 2022 10:33:39 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Fix=20vytv=C3=A1=C5=99en?= =?UTF-8?q?=C3=AD=20mapy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klient/play.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/klient/play.py b/klient/play.py index 3a55ba6..c9c0ace 100755 --- a/klient/play.py +++ b/klient/play.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 -import json -import sys from __future__ import annotations from enum import Enum from typing import Callable, Iterable, List, Optional +import json +import sys class Action(Enum): @@ -130,9 +130,7 @@ def parse_world(world: dict) -> List[List[Field]]: field["hill"], field["home_for_team"], field["occupied_by_team"], - members ) - fields.append(parsed_field) members = [] for member in field["members"]: members.append(Member( @@ -141,6 +139,7 @@ def parse_world(world: dict) -> List[List[Field]]: member["id"], )) parsed_field.members = members + fields_row.append(parsed_field) fields.append(fields_row) return fields