package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Aug 16, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Roll the dice in given rpg dice definition (for example 3d6+2).
Returns the result of the roll or an error of the def cannot be parsed.
Dice represents a single game dice
Roll the Dice and return the result.
RollMany rolls the Dice multiple times and sums up the results.
func (d Dice) RollSpecial(amount, modifier int) int
RollSpecial is the same as RollMany, but after the rolls
a modifier is also added to the result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.