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
1 changed files with 1 additions and 2 deletions

View File

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