Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Goodice ¶
type Goodice struct {
// contains filtered or unexported fields
}
func (*Goodice) GenerateSeeded ¶
GenerateSeeded will generate with a fixed seed
type Result ¶
type Result struct {
Result int
Parts []ResultPart
}
func GenerateSeeded ¶
GenerateSeeded will generate with a fixed seed
type ResultPart ¶
type ResultPart struct {
Type ResultType
// Sides of a die. Will be 0 if ResultType != DiceROll
Sides int
// value within expression: will be negative for substractions
Value int
// absolute value: will always be positive
AbsoluteValue int
// Parts of the result (e.g. every single dice roll)
ResultParts []int
}
Click to show internal directories.
Click to hide internal directories.