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
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
HandServer ( ) : System
Resume ( PokerHandHistory.PokerHand savedHand, CachedHand cache ) : HandHistory
Validate ( Action nextAction ) : Action

Private Methods

Méthode 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 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

HandServer() public méthode

public HandServer ( ) : System
Résultat System

Resume() public méthode

public Resume ( PokerHandHistory.PokerHand savedHand, CachedHand cache ) : HandHistory
savedHand PokerHandHistory.PokerHand
cache CachedHand
Résultat HandHistory

Validate() public méthode

public Validate ( Action nextAction ) : Action
nextAction Action
Résultat Action