origami icon indicating copy to clipboard operation
origami copied to clipboard

[Feature]: Depth-first search pathfinding algorithm

Open bal7hazar opened this issue 1 year ago • 3 comments

Feature Request

Implement DFS (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

bal7hazar avatar Sep 16 '24 22:09 bal7hazar

I would like to work on it if its avaliable, although its gonna take some time.

guha-rahul avatar Sep 17 '24 11:09 guha-rahul

@guha-rahul any advancement?

bal7hazar avatar Oct 08 '24 14:10 bal7hazar

@bal7hazar extremely sorry for the delay, i faced some issue i think it will be solved in a day or two.

guha-rahul avatar Oct 08 '24 14:10 guha-rahul