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