Skip to content

five-on-it / packages/ai/src/crowd / CROWD_HOURS

Variable: CROWD_HOURS ​

const CROWD_HOURS: object

Defined in: packages/ai/src/crowd.ts:128

The crowd's day (times HH:MM, the room clock's): who is out when, and how many.

Type Declaration ​

buses ​

readonly buses: readonly ["05:30", "23:00"]

…and the buses run (their queues) outside the night.

dimShare ​

readonly dimShare: 0.65 = 0.65

The evening and the early morning (outside the night, shops shut), this share.

eveningRun ​

readonly eveningRun: readonly ["17:00", "21:00"]

…and in the evening.

eveningWalk ​

readonly eveningWalk: readonly ["17:00", "22:00"]

morningRun ​

readonly morningRun: readonly ["06:00", "09:00"]

Joggers run in the morning…

morningWalk ​

readonly morningWalk: readonly ["06:00", "10:00"]

…the dogs walked mornings and evenings (twice as many)…

night ​

readonly night: readonly ["23:00", "05:30"]

The night…

nightShare ​

readonly nightShare: 0.3 = 0.3

…when only this share of the crowd is out.

rainShare ​

readonly rainShare: 0.6 = 0.6

In a downpour (sim.sky.rain, less in a shower) only this share of the crowd stays out.

rush ​

readonly rush: 2 = 2

A commuter is this much likelier at the rush hours.

shopsClose ​

readonly shopsClose: "20:00" = '20:00'

…and close.

shopsOpen ​

readonly shopsOpen: "08:00" = '08:00'

Shops open…

sitting ​

readonly sitting: readonly ["07:00", "21:00"]

…the benches sat on by day…

smoking ​

readonly smoking: readonly ["07:30", "23:00"]

…the smokers out by day and in the evening…

sweeping ​

readonly sweeping: readonly ["05:00", "09:30"]

The street sweepers are out at dawn…

toHome ​

readonly toHome: readonly ["16:30", "20:00"]

…and home.

toWork ​

readonly toWork: readonly ["06:30", "10:00"]

Commuters walk to work…