Skip to content

Function: dieOutcomes() ​

ts
function dieOutcomes(group): object;

Defined in: src/dice.ts:709

One die of a kind worked through its own rules, before any keeping or dropping: the chance of each amount it adds to the total, from least up. For dice that are added, that is what the die is worth, explosions and all; for dice that are counted, it is the successes it makes less the ones it takes away. Exact as the rules are played: rerolls stop after MAX_REROLLS and explosions after MAX_EXPLOSIONS, here as in a roll.

Parameters ​

group ​

DiceGroup

Returns ​

object

least ​

ts
least: number;

chances ​

ts
chances: number[];

MIT © John Morris