newaward

package module
v0.0.0-...-5aa7912 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIZE = 16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Award

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

func NewAward

func NewAward(opts ...Options) *Award

func (*Award) FiftyPercentage

func (a *Award) FiftyPercentage() bool

func (*Award) OnePercentage

func (a *Award) OnePercentage() bool

func (*Award) Pick

func (a *Award) Pick()

func (*Award) PickLeftChild

func (a *Award) PickLeftChild()

func (*Award) PickRightChild

func (a *Award) PickRightChild()

func (*Award) TwentyPercentage

func (a *Award) TwentyPercentage() bool

type ChildAction

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

func NewDummyChildAction

func NewDummyChildAction() *ChildAction

type Options

type Options func(*Award)

func WithLeftChildAction

func WithLeftChildAction(one, twenty, eighty func()) Options

func WithNoAwardAction

func WithNoAwardAction(one func()) Options

func WithOneAction

func WithOneAction(one func()) Options

func WithRightChildAction

func WithRightChildAction(one, twenty, eighty func()) Options

Jump to

Keyboard shortcuts

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