citiususc / hipster

Hipster4j is a lightweight and powerful heuristic search library for Java and Android. It contains common, fully customizable algorithms such as Dijkstra, A* (A-Star), DFS, BFS, Bellman-Ford and more.
http://hipster4j.github.io
Apache License 2.0
326 stars 89 forks source link

When checking if point in bounds, also check lower bounds. #144

Closed gahrae closed 9 years ago

gahrae commented 9 years ago

The method pointInBounds of class Maze2D checks if a point is within the bounds of a board. However, it does not check the lower bounds. That is, x >= 0, and y >= 0.

I will submit a pull request shortly to fix this issue.