Skip to content

five-on-it / packages/ai/src/nail-strips / STRIPS

Variable: STRIPS ​

const STRIPS: object

Defined in: packages/ai/src/nail-strips.ts:50

The numbers of the nail strips.

Type Declaration ​

ahead ​

readonly ahead: 40 = 40

…at a junction at least this far ahead along the roads (m)…

apart ​

readonly apart: 15 = 15

No strip is laid this near another (m).

back ​

readonly back: 5 = 5

How far before the node it lies (m): clear of the junction's box.

carBack ​

readonly carBack: 7 = 7

deploySeconds ​

readonly deploySeconds: 1 = 1

How long a strip takes to unroll across the road, and to be reeled in (s).

everyTicks ​

readonly everyTicks: 480 = 480

Ticks between two strips for one player: eight seconds.

kerb ​

readonly kerb: 1.2 = 1.2

How far beyond the road's edge the officer stands (m), and how far back along the kerb its car parks.

leave ​

readonly leave: 70 = 70

The unit goes once no player is this near (m)…

leaveTicks ​

readonly leaveTicks: 1200 = 1200

…or this long after the strip is in (ticks: twenty seconds).

lifeTicks ​

readonly lifeTicks: 1800 = 1800

A strip is picked up this long after it was laid (ticks: thirty seconds)…

near ​

readonly near: 8 = 8

…or once its player, having come this near it (m)…

passed ​

readonly passed: 14 = 14

…is this far from it again (m): they passed it, or turned back.

perPlayer ​

readonly perPlayer: 1 = 1

The most strips across the road after one player at a time.

reach ​

readonly reach: 160 = 160

…and at most this far; with none, at the first node past ahead (m).

retrieveSeconds ​

readonly retrieveSeconds: 1.2 = 1.2

speed ​

readonly speed: 8 = 8

A strip is laid ahead of a player at three stars driving faster than this (m/s)…