Skip to content

five-on-it / packages/ai/src/pathfinding / AstarResult

Interface: AstarResult ​

Defined in: packages/ai/src/pathfinding.ts:60

A plan: the path as node ids from the start, whether it reaches the goal, and what it cost.

Properties ​

complete ​

complete: boolean

Defined in: packages/ai/src/pathfinding.ts:64

Whether the path ends at the goal.


expansions ​

expansions: number

Defined in: packages/ai/src/pathfinding.ts:66

Nodes expanded.


path ​

path: number[]

Defined in: packages/ai/src/pathfinding.ts:62

The nodes from the start to the goal, or to the node nearest the goal when incomplete.