(p: TPos, goal: TPos)
| 69 | |
| 70 | |
| 71 | def heuristic_1(p: TPos, goal: TPos): |
| 72 | # manhattan distance |
| 73 | return abs(p[0] - goal[0]) + abs(p[1] - goal[1]) |
| 74 | |
| 75 | |
| 76 | def key(start: TPos, i: int, goal: TPos, g_function: dict[TPos, float]): |
nothing calls this directly
no outgoing calls
no test coverage detected