Constructor and Description |
---|
PathFinder(Maze maze) |
Modifier and Type | Method and Description |
---|---|
List<Point> |
findPath(int x1,
int y1,
int x2,
int y2)
A* algorithm to find a path through a maze.
|
public PathFinder(Maze maze)
public List<Point> findPath(int x1, int y1, int x2, int y2)
reachable
or if n is on the closed list, ignore.
Otherwise do the following.
x1
- the x-coordinate of the starting pointy1
- the y-coordinate of the starting pointx2
- the x-coordinate of the target pointy2
- the y-coordinate of the target pointCopyright © 2006–2018 Apache Software Foundation. All rights reserved.