What would you like to share?
The dx and dy are reversed!
|
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
What would you like to share?
The dx and dy are reversed!
Python/graphs/greedy_best_first.py
Lines 61 to 63 in ce43a8a
Expected correction
Additional information
No response