Skip to content

Type Alias: FaceStats ​

ts
type FaceStats = object;

Defined in: src/stats.ts:32

How often each face of one kind of die came up, and whether that looks fair.

Properties ​

sides ​

ts
sides: Sides;

Defined in: src/stats.ts:34

The kind of die counted.


counts ​

ts
counts: number[];

Defined in: src/stats.ts:36

counts[i] is how often the die's i-th face came up, from its lowest: every die thrown, a rerolled one and an explosion's included.


dice ​

ts
dice: number;

Defined in: src/stats.ts:38

How many dice of this kind were thrown.


fairness ​

ts
fairness: number | null;

Defined in: src/stats.ts:40

Chance a fair die strays this far or further. Null until there are enough throws to ask.


labels? ​

ts
optional labels?: string[];

Defined in: src/stats.ts:42

What each face says, on a custom die. Left out otherwise.


loaded? ​

ts
optional loaded?: true;

Defined in: src/stats.ts:44

True when the die counted is a loaded one. Left out otherwise.

MIT © John Morris