five-on-it / packages/ai/src/road-walk / stretchRoad
Function: stretchRoad()
stretchRoad(
graph,a,b):number
Defined in: packages/ai/src/road-walk.ts:81
The road of the stretch between two neighbouring nodes, or −1 when they are not neighbours.
Parameters
graph
a
number
b
number
Returns
number