Coin

Coin

Define a two-sided coin term that can be used as part of a Roll formula

Constructor

new Coin()

Source:
Implements:

Members

faces :number

Source:
Implements:

The number of faces on the die

Type:
  • number

Methods

(static) getResultLabel()

Source:

call(modifier)

Source:

Call the result of the coin flip, marking any coins that matched the called target as a success

3dcc1 Flip 3 coins and treat "heads" as successes 2dcc0 Flip 2 coins and treat "tails" as successes

Parameters:
Name Type Description
modifier string

The matched modifier query

roll(minimizeopt, maximizeopt) → {object}

Source:
Implements:

Roll the DiceTerm by mapping a random uniform draw against the faces of the dice term.

Parameters:
Name Type Attributes Description
minimize boolean <optional>

Apply the minimum possible result instead of a random result.

maximize boolean <optional>

Apply the maximum possible result instead of a random result.

Returns:
Type
object