Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Die ¶
type Die struct {
// contains filtered or unexported fields
}
Die represents an individual polyhedral die. It has a positive number of sides.
func (Die) RollWithScores ¶
RollWithScores rolls the Die times number of times. It returns the score both as a sum and as a slice of the individual scores.
Click to show internal directories.
Click to hide internal directories.