Skip to content

I found typo in graphs/greedy_best_first #8764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JadeKim042386 opened this issue May 24, 2023 · 0 comments · Fixed by #8766
Closed

I found typo in graphs/greedy_best_first #8764

JadeKim042386 opened this issue May 24, 2023 · 0 comments · Fixed by #8766
Labels
awaiting triage Awaiting triage from a maintainer

Comments

@JadeKim042386
Copy link
Contributor

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

@JadeKim042386 JadeKim042386 added the awaiting triage Awaiting triage from a maintainer label May 24, 2023
JadeKim042386 added a commit to JadeKim042386/Python that referenced this issue May 24, 2023
JadeKim042386 added a commit to JadeKim042386/Python that referenced this issue May 25, 2023
JadeKim042386 added a commit to JadeKim042386/Python that referenced this issue May 25, 2023
@cclauss cclauss closed this as completed May 25, 2023
tianyizheng02 pushed a commit to tianyizheng02/Python that referenced this issue May 29, 2023
sedatguzelsemme pushed a commit to sedatguzelsemme/Python that referenced this issue Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage Awaiting triage from a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants