standardDice

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardDice

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

func NewCustomDice

func NewCustomDice(sidesValue ...dices.Side) (*StandardDice, error)

func NewDice

func NewDice(sidesNumber int) (*StandardDice, error)

func NewRangeDice

func NewRangeDice(sidesRange dices.Range) (*StandardDice, error)

func (*StandardDice) Throw

func (d *StandardDice) Throw() dices.Side

func (*StandardDice) ThrowN

func (d *StandardDice) ThrowN(n int) []dices.Side

type StandardSide

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

func NewStandardSide

func NewStandardSide(value any) StandardSide

func (StandardSide) Value

func (s StandardSide) Value() any

Jump to

Keyboard shortcuts

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