five-on-it / packages/ai/src/crowd / CROWD_HOURS
Variable: CROWD_HOURS
constCROWD_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
readonlybuses: readonly ["05:30","23:00"]
…and the buses run (their queues) outside the night.
dimShare
readonlydimShare:0.65=0.65
The evening and the early morning (outside the night, shops shut), this share.
eveningRun
readonlyeveningRun: readonly ["17:00","21:00"]
…and in the evening.
eveningWalk
readonlyeveningWalk: readonly ["17:00","22:00"]
morningRun
readonlymorningRun: readonly ["06:00","09:00"]
Joggers run in the morning…
morningWalk
readonlymorningWalk: readonly ["06:00","10:00"]
…the dogs walked mornings and evenings (twice as many)…
night
readonlynight: readonly ["23:00","05:30"]
The night…
nightShare
readonlynightShare:0.3=0.3
…when only this share of the crowd is out.
rainShare
readonlyrainShare:0.6=0.6
In a downpour (sim.sky.rain, less in a shower) only this share of the crowd stays out.
rush
readonlyrush:2=2
A commuter is this much likelier at the rush hours.
shopsClose
readonlyshopsClose:"20:00"='20:00'
…and close.
shopsOpen
readonlyshopsOpen:"08:00"='08:00'
Shops open…
sitting
readonlysitting: readonly ["07:00","21:00"]
…the benches sat on by day…
smoking
readonlysmoking: readonly ["07:30","23:00"]
…the smokers out by day and in the evening…
sweeping
readonlysweeping: readonly ["05:00","09:30"]
The street sweepers are out at dawn…
toHome
readonlytoHome: readonly ["16:30","20:00"]
…and home.
toWork
readonlytoWork: readonly ["06:30","10:00"]
Commuters walk to work…