Class: BestFirstFinder

PFBestFirstFinder

new BestFirstFinder(allowDiagonal, [heuristic])

Best-First-Search path-finder.

Source:
./src/modules/BestFirst.js, line 9
Parameters:
Name Type Argument Description
allowDiagonal boolean Whether diagonal movement is allowed.
heuristic function(number, number): number <optional>
Heuristic function being used to estimate the distance(defaults to manhattan).

Extends