strategy

package
v0.0.0-...-a0b16b4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Approximate

type Approximate struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewApproximate

func NewApproximate(communityCards models.CommunityCards,
	playerCards []models.DealtCards,
	playersCount int,
	simulationRounds int,
	concurrency int) *Approximate

func (*Approximate) Run

func (a *Approximate) Run() Result

type Deterministic

type Deterministic struct {
}

func (Deterministic) Run

func (d Deterministic) Run() Result

type PlayerResult

type PlayerResult struct {
	Cards          models.DealtCards
	WinProbability float64
	TieProbability float64
}

type ProbabilityCalculator

type ProbabilityCalculator interface {
	Run() Result
}

type Result

type Result struct {
	PlayerResult []PlayerResult
}

Jump to

Keyboard shortcuts

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