C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AddAction ( int pIdx, System.Action action, List curRoundActions ) : void
GetFirstToAct ( bool preflop ) : int
payWinners ( ) : void

Описание методов

DealFlop() публичный Метод

public DealFlop ( ) : void
Результат void

DealHoleCards() публичный Метод

Deals out all of the players' hole cards.
public DealHoleCards ( ) : void
Результат void

DealRiver() публичный Метод

public DealRiver ( ) : void
Результат void

DealTurn() публичный Метод

public DealTurn ( ) : void
Результат void

GetBets() публичный Метод

Gets the bets from all the players still in the hand.
public GetBets ( List curRoundActions ) : void
curRoundActions List
Результат void

GetBlinds() публичный Метод

Forces players to post blinds before the hand can start.
public GetBlinds ( ) : void
Результат void

HandEngine() публичный Метод

public HandEngine ( ) : System
Результат System

PlayHand() публичный Метод

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.
Результат void

PlayHand() публичный Метод

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.
Результат void