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

Share Link #7

Open
rvhuang opened this issue Jan 27, 2019 · 0 comments
Open

Share Link #7

rvhuang opened this issue Jan 27, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@rvhuang
Copy link
Owner

rvhuang commented Jan 27, 2019

Add the following optional parameters to the query string that can pre-select the algorithm and heuristic functions.

  • algorithm (the algorithm's short name in lower case)
  • heuristic (the function's initial letter in lower case)
  • path to find
  • obstacles

Example:

https://pathfinding-lab.codedwith.fun/?o=2,[12,13,16];3,21;4,28&p=astar1,21-12,17m,e;bfs13,2-12,15c

This will perform the following works:

  1. Place obstacles on (2, 12), (2, 13) and (2,16), then place obstacles on (3, 21) and (4, 28).
  2. Find a path between (1, 21) and (12, 17) using A* as search algorithm and combining Manhattan distance and Euclidean distance as the heuristic function.
  3. Find a path between (13, 2) and (12, 15) using Best-first search algorithm and Chebyshev distance.
@rvhuang rvhuang added the enhancement New feature or request label Jan 27, 2019
@rvhuang rvhuang changed the title Additional Options in Query String Share Link Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant