Browse Source

Strategická: Fix vytváření mapy

master
David Klement 2 years ago
parent
commit
36c1072d40
  1. 7
      klient/play.py

7
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

Loading…
Cancel
Save