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

Add greedy pathfinding algorithm #103

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

Jonatan-Chaverri
Copy link
Contributor

Closes #99

Introduced changes

  • Add greedy pathfinding algorithm

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Add a dedicated CI job for new examples
  • Performed self-review of the code

@Jonatan-Chaverri
Copy link
Contributor Author

@bal7hazar PR ready for review! Thanks

Copy link
Collaborator

@bal7hazar bal7hazar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!
I took the liberty of making few modifications to simply the code such as:

  • Shuffle the directions when checking neighbors to avoid having hard coded patterns in game (like if the next move can either be North or West, we don't want it to be always North for instance but pseudo randomly one of those).

@bal7hazar bal7hazar merged commit b0777e0 into dojoengine:main Oct 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Greedy pathfinding algorithm
2 participants