Skip to content

five-on-it / packages/world/src/pavements / nextPavementNode

Function: nextPavementNode() ​

nextPavementNode(p, from, goal): number

Defined in: packages/world/src/pavements.ts:503

The neighbour of from on a shortest walk to goal, or −1 at the goal or with no way there.

Parameters ​

p ​

Pavements

from ​

number

goal ​

number

Returns ​

number