Skip to content

Function: readDiceAs() ​

ts
function readDiceAs(
   reading, 
   roll, 
   before?, 
   options?
): Outcome;

Defined in: src/games/readings.ts:361

Read a roll the way a reading does, with the rolls before it in the same game where that matters.

Parameters ​

reading ​

| "highest" | "faces" | "successes" | "counts" | "sum" | "doubles" | "robber" | "backgammon" | "sixAgain" | "cowries" | "craps" | "hazard" | "yahtzee" | "pokerDice" | "farkle" | "scores" | "bunco" | "pig" | "shipCaptainCrew" | "shutTheBox" | "mexico" | "sicBo" | "choHan" | "chinchirorin" | "risk" | "d20" | "fate" | "bladesPool" | "pbta" | "hitsAndGlitch" | "percentile" | "rollUnder" | "d66"

roll ​

Roll

before? ​

readonly Roll[] = []

options? ​

Record<string, number> = {}

Returns ​

Outcome

MIT © John Morris