C# Class holdem_engine.HandServer

Plays a hand of poker between a list of players. Designed to be restorable, non-blocking, and for use by web servers. Author: Wesley Tansey
显示文件 Open project: tansey/holdem_engine Class Usage Examples

Public Methods

Method Description
DealFlop ( ) : void
DealHoleCards ( ) : void

Deals out all of the players' hole cards.

DealRiver ( ) : void
DealTurn ( ) : void
HandServer ( ) : System
Resume ( PokerHandHistory.PokerHand savedHand, CachedHand cache ) : HandHistory
Validate ( Action nextAction ) : Action

Private Methods

Method Description
AddAction ( int pIdx, Action action, List curRoundActions ) : void
GetFirstToAct ( bool preflop ) : int
payWinners ( ) : void
restoreBets ( PokerHandHistory savedActions, List curRoundActions ) : bool
restoreBlinds ( PokerHandHistory.PokerHand savedHand ) : bool

Method Details

DealFlop() public method

public DealFlop ( ) : void
return void

DealHoleCards() public method

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

DealRiver() public method

public DealRiver ( ) : void
return void

DealTurn() public method

public DealTurn ( ) : void
return void

HandServer() public method

public HandServer ( ) : System
return System

Resume() public method

public Resume ( PokerHandHistory.PokerHand savedHand, CachedHand cache ) : HandHistory
savedHand PokerHandHistory.PokerHand
cache CachedHand
return HandHistory

Validate() public method

public Validate ( Action nextAction ) : Action
nextAction Action
return Action