dice

package
v0.0.0-...-45672a7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dice

type Dice interface {
	Throw() int32
	SetThrow(int32)
	History() []int32
	Result(face int32) int64
	NbThrow() int64
	WeaklestFaces() []int32
	Order() (faces []int32, results []int64)
	String() string
}

Dice describe a dice and the history

func New

func New(nbFace int32) (Dice, error)

New instance dice returnment

Jump to

Keyboard shortcuts

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