package
Version:
v0.0.0-...-f7464b4
Opens a new window with list of versions in this module.
Published: Feb 18, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Dice struct {
Count int
Thrown []int
}
Double returns true if all the numbers thrown are the same
Sum returns the sum of all the numbers from the dice
Will be mainly used to determine the amount of steps you can take
Throw will generate new numbers in the Thrown slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.