Discover Packages
github.com/aultimus/gosouth
headsup
package
Version:
v0.0.0-...-f4aeec7
Opens a new window with list of versions in this module.
Published: Jun 15, 2016
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
HandProbMap returns a map of hand types (string of format of one of
{89o, 89s, 99}.
TODO: Add test coverage
HandProb represents the probability of a hand winning
type Result struct {
Win []float64
}
Result represents the probability breakdown
of a hand unfolding
NewResult creates a new Result instance
for comparing numHands hands
Prob given n (1 -> many) initial starting hands calculates the probabilities
of the results by simulating every possible deal from the resultant deck.
Likely faster to use a lookup table, this function can help generate one
Source Files
¶
Click to show internal directories.
Click to hide internal directories.