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

Suggestion: add a functional interface #5

Closed
erelsgl opened this issue Nov 2, 2021 · 1 comment
Closed

Suggestion: add a functional interface #5

erelsgl opened this issue Nov 2, 2021 · 1 comment

Comments

@erelsgl
Copy link

erelsgl commented Nov 2, 2021

Thanks for the great library! I suggest to allow a fuctional interface. That is, instead of creating a class for each problem, allow to pass the functions neighbors, is_final etc. as direct arguments to the solver. This may be simpler for some users.

@jrialland
Copy link
Owner

Hello, thx for your remark. In fact this function already exists (its name is "find_path", and its usage is demonstrated in https://github.com/jrialland/python-astar/blob/master/tests/basic/test_basic.py

jrialland added a commit that referenced this issue Nov 9, 2021
document find_path function. Fixes #5
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

No branches or pull requests

2 participants