C# Class TexasHoldem.Logic.Helpers.HandEvaluator

Mostra file Open project: NikolayIT/TexasHoldemGameEngine Class Usage Examples

Public Methods

Method Description
GetBestHand ( IEnumerable cards ) : BestHand

Finds the best possible hand given a player's cards and all revealed comunity cards.

Private Methods

Method Description
GetStraightCards ( int cardTypeCounts ) : ICollection
GetStraightFlushCards ( int cardSuitCounts, IEnumerable cards ) : ICollection
GetTypesWithNCards ( int cardTypeCounts, int n ) : IList

Method Details

GetBestHand() public method

Finds the best possible hand given a player's cards and all revealed comunity cards.
public GetBestHand ( IEnumerable cards ) : BestHand
cards IEnumerable A player's cards + all revealed comunity cards (at lesat 5 in total)
return BestHand