Skip to content

five-on-it / apps/client/src/renderer/lit-windows / windowChance

Function: windowChance() ​

windowChance(placement, index, night): number

Defined in: apps/client/src/renderer/lit-windows.ts:322

A window's place in the queue of its night, [0, 1): it is lit while the share of lit windows is over it. The same for every player (the placement's index, the window's index in windowsOf, the night's number), another one the next night.

Parameters ​

placement ​

number

index ​

number

night ​

number

Returns ​

number