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

Methods that return paths should be consistent with inclusion of source and destination #10

Open
FaronBracy opened this issue Feb 2, 2019 · 0 comments

Comments

@FaronBracy
Copy link
Owner

The DepthFirstPaths class has a PathTo method that returns a list of vertices from source to destination
https://github.com/FaronBracy/RogueSharp/blob/master/RogueSharp/PathFinder.cs#L100
The source vertex is not included in the list.

This behavior is different from the PathFinder class's ShortestPath method which does include the source cell.
https://github.com/FaronBracy/RogueSharp/blob/master/RogueSharp/PathFinder.cs#L100

The behavior should be consistent across all methods that return paths

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

1 participant