This commit is contained in:
Emi Simpson 2023-02-11 23:56:53 -05:00
parent c0d5d69309
commit 3b56092319
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847

View file

@ -123,7 +123,7 @@ def pathfind_multi(
Option[Tuple[Tuple[S, ...], int]] Option[Tuple[Tuple[S, ...], int]]
] | Recur[[ ] | Recur[[
Callable[[S], Sequence[Tuple[S, int]]], Callable[[S], Sequence[Tuple[S, int]]],
Callable[[S], int], Callable[[S, S], int],
List[S], List[S],
Tuple[Tuple[S, ...], int] Tuple[Tuple[S, ...], int]
]]: ]]:
@ -181,7 +181,6 @@ def pathfind_multi(
case [start, goal, *next_goals]: case [start, goal, *next_goals]:
match pathfind(neighbors, p(heuristic, goal), p(eq, goal), start): match pathfind(neighbors, p(heuristic, goal), p(eq, goal), start):
case None: case None:
print(f'Failed to pathfind to {goal}')
return Return(None) return Return(None)
case Some((path, cost)): case Some((path, cost)):
return Recur( return Recur(