Package me.nabdev.pathfinding.algorithms
Interface SearchAlgorithm
- All Known Implementing Classes:
Astar
public interface SearchAlgorithm
An interface that represents a search algorithm (like A*)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The different types of search algorithms available. -
Method Summary
-
Method Details
-
run
Finds a path from the start to the end.- Parameters:
start
- The starting point.end
- The target point.- Returns:
- A Path object containing the path from the start to the target.
- Throws:
ImpossiblePathException
- If there is no possible path from the start
-