add goal type hint
This commit is contained in:
parent
f777afba56
commit
b46ebc9b3e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user