Documentation ¶
Index ¶
- Constants
- type HandOddsConfig
- type HandOddsIteration
- type HandOddsResult
- func (r HandOddsResult) AllPlayerWins() ([]int, error)
- func (r HandOddsResult) NumberOfPlayers() int
- func (r HandOddsResult) PlayerCombinations(index int) ([]cards.Combination, error)
- func (r HandOddsResult) PlayerHand(index int) ([]cards.Card, error)
- func (r HandOddsResult) PlayerWins(index int) (int, error)
- func (r HandOddsResult) TiePercentage() (float32, error)
- func (r HandOddsResult) Ties() (int, error)
- func (r HandOddsResult) WinRates() ([]float32, error)
- func (r HandOddsResult) WinningPlayer() (int, error)
Constants ¶
View Source
const BurnCardsCount = 3
View Source
const CardsUsedInTexasHoldem = 7
View Source
const CommunityCardsCount = 5
View Source
const HoleCardsCount = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandOddsConfig ¶
type HandOddsIteration ¶
type HandOddsIteration struct { Combinations []cards.Combination Board []cards.Card }
func (HandOddsIteration) IsTie ¶
func (r HandOddsIteration) IsTie() (bool, error)
func (HandOddsIteration) StrongestCombination ¶
func (r HandOddsIteration) StrongestCombination() (*cards.Combination, error)
func (HandOddsIteration) Winner ¶
func (r HandOddsIteration) Winner() (int, error)
type HandOddsResult ¶
type HandOddsResult struct { Config HandOddsConfig Iterations []HandOddsIteration }
func HandOdds ¶
func HandOdds(config HandOddsConfig) (*HandOddsResult, error)
func (HandOddsResult) AllPlayerWins ¶
func (r HandOddsResult) AllPlayerWins() ([]int, error)
func (HandOddsResult) NumberOfPlayers ¶
func (r HandOddsResult) NumberOfPlayers() int
func (HandOddsResult) PlayerCombinations ¶
func (r HandOddsResult) PlayerCombinations(index int) ([]cards.Combination, error)
func (HandOddsResult) PlayerHand ¶
func (r HandOddsResult) PlayerHand(index int) ([]cards.Card, error)
func (HandOddsResult) PlayerWins ¶
func (r HandOddsResult) PlayerWins(index int) (int, error)
func (HandOddsResult) TiePercentage ¶
func (r HandOddsResult) TiePercentage() (float32, error)
func (HandOddsResult) Ties ¶
func (r HandOddsResult) Ties() (int, error)
func (HandOddsResult) WinRates ¶
func (r HandOddsResult) WinRates() ([]float32, error)
func (HandOddsResult) WinningPlayer ¶
func (r HandOddsResult) WinningPlayer() (int, error)
Click to show internal directories.
Click to hide internal directories.