Documentation ¶
Overview ¶
Package game keeps track of basic poker game information. Any Player may use the game.Play function in order to play a game.
Index ¶
Constants ¶
View Source
const ( PreFlop = iota Flop Turn River Showdown )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct { Round int // 0-4: pre-flop, flop, turn, river, showdown. Bets [4][]float64 // The chips put in for each player for each round. Holes []string // All of the viewable hole cards. Board []string // All of the board cards. Raises int // The number of raises this round. Actions []byte // The last action taken by each player. Actor int // The player whose turn it is to act. *Rules // The set of rules to use to play the game. Event interface{} // The most recent event *diff.Players }
func (*Game) Copy ¶
Makes a partial copy of the Game that is specifically suited for creating game trees.
func (*Game) LegalActions ¶
LegalActions returns a string containing the currently legal actions.
Click to show internal directories.
Click to hide internal directories.