Skip to content

Commit b8bd8e6

Browse files
authored
Default heuristicWeight is 1.2, not 1 (#278)
1 parent 10c3e64 commit b8bd8e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3859,7 +3859,7 @@ interface PathFinderOpts {
38593859
* Weight to apply to the heuristic in the A* formula `F = G + weight * H`.
38603860
*
38613861
* Use this option only if you understand the underlying A* algorithm mechanics!
3862-
* @default 1
3862+
* @default 1.2
38633863
*/
38643864
heuristicWeight?: number;
38653865

src/path-finder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ interface PathFinderOpts {
110110
* Weight to apply to the heuristic in the A* formula `F = G + weight * H`.
111111
*
112112
* Use this option only if you understand the underlying A* algorithm mechanics!
113-
* @default 1
113+
* @default 1.2
114114
*/
115115
heuristicWeight?: number;
116116

0 commit comments

Comments
 (0)