roll_dice: Roll Dice

Description Usage Arguments Value Examples

View source: R/roll_dice.R

Description

Main function to use the library. This function wraps all the computing functions of the library. let the user choose between print or hide all rolls details in the console.

Usage

1
roll_dice(cmd, roll_history = FALSE)

Arguments

cmd

character string describing the dice roll to compute.

roll_history

boolean, if TRUE, dice rolls details are visible in the console.

Value

result of the dice roll computation

Examples

1
2
3
roll_dice("1d10 + 20")
roll_dice("1d4 * 2")
roll_dice("2d20h1")

Felixmil/rollR documentation built on July 11, 2020, 2:36 a.m.