Clean up
This commit is contained in:
parent
c0d5d69309
commit
3b56092319
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue