From b46ebc9b3e7ecc3448d08e6bd436154f896abadd Mon Sep 17 00:00:00 2001 From: matixezor Date: Sun, 25 Apr 2021 17:14:07 +0200 Subject: [PATCH] add goal type hint --- src/search_algoritms/a_star.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search_algoritms/a_star.py b/src/search_algoritms/a_star.py index 47c7e14..b972fc4 100644 --- a/src/search_algoritms/a_star.py +++ b/src/search_algoritms/a_star.py @@ -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)