Function: presetOdds()
ts
function presetOdds(
preset,
spec?,
language?
): OutcomeOdds[] | null;Defined in: src/games/presets.ts:204
The exact odds of each outcome of a game's first roll: a natural in craps, each hand in chinchirorin, each result of a Risk battle. Every way the dice can fall is counted, in whole numbers. spec is the preset's own dice unless others are given (a larger pool, fewer battle dice).
Null where there is nothing to count: a reading that is only the total, whose odds distributionOf gives; a reading that depends on the order of the dice; or dice that are rerolled or explode.
Parameters
preset
spec?
RollSpec = ...
language?
"en" | "ja"
Returns
OutcomeOdds[] | null