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