Skip to content

five-on-it / packages/ai/src/road-walk / Walk

Interface: Walk ​

Defined in: packages/ai/src/road-walk.ts:12

What a walk needs of a graph.

Properties ​

along ​

along: object[][]

Defined in: packages/ai/src/road-walk.ts:16

Each road's nodes with how far along it they lie, in order.


around ​

around: number[][]

Defined in: packages/ai/src/road-walk.ts:14

The nodes each node shares a stretch of road with, ascending.


stretch ​

stretch: Map<number, number>

Defined in: packages/ai/src/road-walk.ts:18

The road of the stretch between two nodes (the lowest id when several), by a * nodes + b.