check

package
v0.0.0-...-75eaa32 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(v value.Interface, opts Opts) prob.Dist[Outcome]

func CompareOutcomes

func CompareOutcomes(a, b Outcome) int

Types

type Opts

type Opts struct {
	Count                    value.Interface
	SuccessTarget            value.Interface
	CriticalSuccessThreshold int64
	CriticalFailureThreshold int64
	ModifierFn               func(int64) int64
}

type Outcome

type Outcome struct {
	NormalSuccesses   int64
	NormalFailures    int64
	CriticalSuccesses int64
	CriticalFailures  int64
}

func SumOutcomes

func SumOutcomes(outcomes ...Outcome) Outcome

func (Outcome) Failures

func (o Outcome) Failures() int64

func (Outcome) Successes

func (o Outcome) Successes() int64

Jump to

Keyboard shortcuts

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