prediction

package
v0.0.0-...-62ab3a1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentOrder

func GetCurrentOrder(hole []base.Card, board []base.Card) ([][][]base.Card, int64, int64, int64, int64, error)

GetCurrentOrder returns, given a board of 3 to 5 cards, all other possible coexisting holes sorted into levels from best to worst, where holes in better levels will beat holes in worse levels and holes in the same level will tie, assuming no other cards are dealt to the board, as well as the rank of this hole relative to the ordering. TODO: add number of opponents

func GetFutureOutcomes

func GetFutureOutcomes(hole []base.Card, board []base.Card) (float64, float64, float64, error)

GetFutureOutcomes returns, given a hole and board of 3 to 5 cards, the probability that the hole will win, tie, and lose at the end of the game, assumming random subsequent cards. TODO: add number of opponents

func GetInitialOutcomes

func GetInitialOutcomes(hole []base.Card) (float64, float64, float64, error)

GetInitialOutcomes returns, given a hole and empty board, the probability that the hole will win, tie, and lose at the end of the game, assumming random subsequent cards. i.e. the starting hand probabilities, which are always the same. TODO: add number of opponents

func PrecomputeInitialOutcomes

func PrecomputeInitialOutcomes() error

PrecomputeInitialOutcomes precomputes the initial outcomes and stores them in a file for GetInitialOutcomes to later use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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