C# Class holdem_engine.HandEngine

Plays of a hand of poker between a list of players. Designed for fast local use by AI agents. Author: Wesley Tansey
Afficher le fichier Open project: tansey/holdem_engine Class Usage Examples

Méthodes publiques

Méthode Description
DealFlop ( ) : void
DealHoleCards ( ) : void

Deals out all of the players' hole cards.

DealRiver ( ) : void
DealTurn ( ) : void
GetBets ( List curRoundActions ) : void

Gets the bets from all the players still in the hand.

GetBlinds ( ) : void

Forces players to post blinds before the hand can start.

HandEngine ( ) : System
PlayHand ( HandHistory handHistory ) : void

Plays a hand from the start. Note that this method will not resume a game from a saved hand _history.

PlayHand ( HandHistory handHistory, CachedHand cachedHand ) : void

Plays a hand from the start. Note that this method will not resume a game from a saved hand _history.

Private Methods

Méthode Description
AddAction ( int pIdx, System.Action action, List curRoundActions ) : void
GetFirstToAct ( bool preflop ) : int
payWinners ( ) : void

Method Details

DealFlop() public méthode

public DealFlop ( ) : void
Résultat void

DealHoleCards() public méthode

Deals out all of the players' hole cards.
public DealHoleCards ( ) : void
Résultat void

DealRiver() public méthode

public DealRiver ( ) : void
Résultat void

DealTurn() public méthode

public DealTurn ( ) : void
Résultat void

GetBets() public méthode

Gets the bets from all the players still in the hand.
public GetBets ( List curRoundActions ) : void
curRoundActions List
Résultat void

GetBlinds() public méthode

Forces players to post blinds before the hand can start.
public GetBlinds ( ) : void
Résultat void

HandEngine() public méthode

public HandEngine ( ) : System
Résultat System

PlayHand() public méthode

Plays a hand from the start. Note that this method will not resume a game from a saved hand _history.
public PlayHand ( HandHistory handHistory ) : void
handHistory HandHistory An new hand _history with the list of players and the game parameters.
Résultat void

PlayHand() public méthode

Plays a hand from the start. Note that this method will not resume a game from a saved hand _history.
public PlayHand ( HandHistory handHistory, CachedHand cachedHand ) : void
handHistory HandHistory An new hand _history with the list of players and the game parameters.
cachedHand CachedHand The cached deck to use.
Résultat void