add goal type hint

This commit is contained in:
matixezor 2021-04-25 17:14:07 +02:00
parent f777afba56
commit b46ebc9b3e

View File

@ -6,7 +6,7 @@ from tile import Tile
from .helpers import successor, get_path_actions
def a_star(field: List[List[Tile]], start_x: int, start_y: int, start_direction: int, goal):
def a_star(field: List[List[Tile]], start_x: int, start_y: int, start_direction: int, goal: Tuple[int, int]):
explored = []
node_queue: List[Tuple[int, Node]] = [(1, Node(start_x, start_y, start_direction))]
# do kolejki dodawać krotke (priorytet, obiekt)