-
-
Notifications
You must be signed in to change notification settings - Fork 47.1k
Closed
Labels
awaiting triageAwaiting triage from a maintainerAwaiting triage from a maintainer
Description
What would you like to share?
The dx and dy are reversed!
Python/graphs/greedy_best_first.py
Lines 61 to 63 in ce43a8a
dy = abs(self.pos_x - self.goal_x) | |
dx = abs(self.pos_y - self.goal_y) | |
return dx + dy |
Expected correction
dx = abs(self.pos_x - self.goal_x)
dy = abs(self.pos_y - self.goal_y)
return dx + dy
Additional information
No response
Metadata
Metadata
Assignees
Labels
awaiting triageAwaiting triage from a maintainerAwaiting triage from a maintainer