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

[Feature]: Breadth-First Search pathfinding algorithm #96

Closed
1 task
bal7hazar opened this issue Sep 16, 2024 · 1 comment · Fixed by #102
Closed
1 task

[Feature]: Breadth-First Search pathfinding algorithm #96

bal7hazar opened this issue Sep 16, 2024 · 1 comment · Fixed by #102
Assignees

Comments

@bal7hazar
Copy link
Collaborator

bal7hazar commented Sep 16, 2024

Feature Request

Implement BFS (source) algorithm for the map package.

Here: https://github.com/dojoengine/origami/tree/main/crates/map/src/helpers

Proposed Solution

No response

Alternatives

No response

Related Code

No response

Additional context

Currently the A* algorithm is implemented, having the choice to use different algorithm for specific cases could be interesting.

Try to match the A* trait for the high level usage, such as:

fn search(grid: felt252, width: u8, height: u8, from: u8, to: u8) -> Span<u8>

If the feature is accepted, would you be willing to contribute it?

  • Yes I would be willing to contribute
@okhaimie-dev
Copy link
Contributor

I'll like to explore the BFS algorithm

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 a pull request may close this issue.

2 participants