day178

package
v0.0.0-...-36687a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstGame

func FirstGame(d *Dice) int

FirstGame returns the number of rolls required to meet the condition. Condition is a five followed by a six.

func SecondGame

func SecondGame(d *Dice) int

SecondGame returns the number of rolls required to meet the condition. Condition is a five followed by another five.

Types

type Dice

type Dice struct {
	// contains filtered or unexported fields
}

Dice represents a 6-sided random die.

func (*Dice) Next

func (d *Dice) Next() int

Next returns the value of the next die throw.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL