Skip to content
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

Changed A* exit condition, added 2 tests for it #21492

Merged
merged 1 commit into from
Oct 2, 2018

Conversation

Maykeye
Copy link
Contributor

@Maykeye Maykeye commented Aug 27, 2018

Fix for #21445
A* now exits when next node from open set with least cost happens to be end_point,
not when node with least cost has end_point as a neigbour.

Added two tests for A*:

  • ABC tests case where start and end node are neigbours
  • ABCX tests case with intermediate nodes

@akien-mga akien-mga added this to the 3.1 milestone Aug 28, 2018
@akien-mga
Copy link
Member

Could you squash the two commits? See PR workflow.

A* now exits when next node from open set with least cost happens to be end_point,
not when node with least cost has end_point as a neigbour.

Added two tests for astar:
* ABC tests case where start and end node are
neigbours
* ABCX tests case with intermediate nodes
@Maykeye
Copy link
Contributor Author

Maykeye commented Aug 28, 2018

Done. It seemed timed out osx build on Travis for some reason passed now

@akien-mga akien-mga merged commit b4c1d40 into godotengine:master Oct 2, 2018
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants