Documentation ¶
Overview ¶
Package kuhn implements an extensive-form game tree for Kuhn Poker, adapted from: https://justinsermeno.com/posts/cfr/.
Index ¶
- Constants
- type Action
- type Card
- type PokerNode
- func (k *PokerNode) Close()
- func (k *PokerNode) GetChild(i int) cfr.GameTreeNode
- func (k *PokerNode) GetChildProbability(i int) float64
- func (k *PokerNode) InfoSet(player int) cfr.InfoSet
- func (k *PokerNode) InfoSetKey(player int) []byte
- func (k *PokerNode) IsTerminal() bool
- func (k *PokerNode) NumChildren() int
- func (k *PokerNode) Parent() cfr.GameTreeNode
- func (k *PokerNode) Player() int
- func (k *PokerNode) SampleChild() (cfr.GameTreeNode, float64)
- func (k PokerNode) String() string
- func (k *PokerNode) Type() cfr.NodeType
- func (k *PokerNode) Utility(player int) float64
Constants ¶
View Source
const ( Random = 'r' Check = 'c' Bet = 'b' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PokerNode ¶
type PokerNode struct {
// contains filtered or unexported fields
}
PokerNode implements cfr.GameTreeNode for Kuhn Poker.
func (*PokerNode) GetChildProbability ¶
GetChildProbability implements cfr.GameTreeNode.
func (*PokerNode) InfoSetKey ¶
func (*PokerNode) IsTerminal ¶
func (*PokerNode) NumChildren ¶
NumChildren implements cfr.GameTreeNode.
func (*PokerNode) Parent ¶
func (k *PokerNode) Parent() cfr.GameTreeNode
Parent implements cfr.GameTreeNode.
func (*PokerNode) SampleChild ¶
SampleChild implements cfr.GameTreeNode.
Click to show internal directories.
Click to hide internal directories.