Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix models types #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import enum
from typing import List

from src import hide_and_seek_pb2


Expand Down Expand Up @@ -103,7 +105,7 @@ def to_model(path: hide_and_seek_pb2.Path):


class Graph:
def __init__(self, paths: [], nodes: []):
def __init__(self, paths: List[Path], nodes: List[Node]):
self.paths = paths
self.nodes = nodes

Expand All @@ -125,7 +127,7 @@ def __init__(self, graph: Graph,
police_income_each_turn: float,
thief_income_each_turn: float,
max_turn: int,
visible_turns: [],
visible_turns: List[int],
chat_box_max_size: int,
chat_cost_per_char: float):
self.graph = graph
Expand Down Expand Up @@ -200,8 +202,8 @@ def __init__(self, status: GameStatus,
config: GameConfig,
viewer: Agent,
balance: float,
visible_agents: list,
chat_box: list):
visible_agents: List[Agent],
chat_box: List[Chat]):
self.status = status
self.result = result
self.turn = turn
Expand Down