simulate

package
v0.0.0-...-6c09dce Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 SimulationData

type SimulationData struct {
	RankSum       int64
	RoyalFlush    int64
	StraightFlush int64
	FourOfAKind   int64
	FullHouse     int64
	Flush         int64
	Straight      int64
	ThreeOfAKind  int64
	TwoPair       int64
	Pair          int64
	HighCard      int64
}

type SimulationResult

type SimulationResult struct {
	Hand          string  `json:"hand" bson:"hand"`
	EndHandSize   int32   `json:"end_hand_size" bson:"end_hand_size"`
	ExpectedRank  float32 `json:"expected_rank" bson:"expected_rank"`
	RoyalFlush    float32 `json:"royal_flush" bson:"royal_flush"`
	StraightFlush float32 `json:"straight_flush" bson:"straight_flush"`
	FourOfAKind   float32 `json:"four_of_a_kind" bson:"four_of_a_kind"`
	FullHouse     float32 `json:"full_house" bson:"full_house"`
	Flush         float32 `json:"flush" bson:"flush"`
	Straight      float32 `json:"straight" bson:"straight"`
	ThreeOfAKind  float32 `json:"three_of_a_kind" bson:"three_of_a_kind"`
	TwoPair       float32 `json:"two_pair" bson:"two_pair"`
	Pair          float32 `json:"pair" bson:"pair"`
	HighCard      float32 `json:"high_card" bson:"high_card"`
}

func SimulateHand

func SimulateHand(hand algorithm.Hand, endHandSize int, exclude map[algorithm.Card]bool, ranks map[string]int64) (*SimulationResult, error)

Jump to

Keyboard shortcuts

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