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
파일 보기 프로젝트 열기: tansey/holdem_engine 1 사용 예제들

공개 메소드들

메소드 설명
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