dice

package
v0.0.0-...-a290dc2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CONSONANT = "bcdfghjklmnprstvwxz"
View Source
const VOWELS = "aeiouy"

Variables

This section is empty.

Functions

func Consonant

func Consonant() string

func D10

func D10() int

func D12

func D12() int

func D20

func D20() int

func D4

func D4() int

func D6

func D6() int

func D8

func D8() int

func Dn

func Dn(die int) int

func Roll

func Roll(die, number int) int

func RollKeepBest

func RollKeepBest(die int, number int, keep int) int

func RollKeepWorst

func RollKeepWorst(die int, number int, keep int) int

func RollStat

func RollStat() int

RollStat roll a 4d6-keep best 3 stat

func Vowel

func Vowel() string

func Word

func Word(ln int) string

Types

type Character

type Character struct {
	Name string
	Str  int
	Int  int
	Dex  int
	Wis  int
	Cos  int
	Cha  int
	HP   int
}

func CreateCharacter

func CreateCharacter() *Character

Jump to

Keyboard shortcuts

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