C# 클래스 TexasHoldem.Logic.Helpers.Helpers

Class containing helper methods for evaluating and comparing player's hands.
파일 보기 프로젝트 열기: NikolayIT/TexasHoldemGameEngine

공개 메소드들

메소드 설명
CompareCards ( IEnumerable firstPlayerCards, IEnumerable secondPlayerCards ) : int

Compares the cards of two opponents to see which one can make the strongest hand with the community cards. At least 5 cards are needed. Can be used during and after the Flop round.

GetHandRank ( ICollection cards ) : HandRankType

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

메소드 상세

CompareCards() 공개 정적인 메소드

Compares the cards of two opponents to see which one can make the strongest hand with the community cards. At least 5 cards are needed. Can be used during and after the Flop round.
public static CompareCards ( IEnumerable firstPlayerCards, IEnumerable secondPlayerCards ) : int
firstPlayerCards IEnumerable First player cards + all revealed comunity cards
secondPlayerCards IEnumerable Second player cards + all revealed comunity cards
리턴 int

GetHandRank() 공개 정적인 메소드

Finds the best possible hand given a player's cards and all revealed comunity cards.
public static GetHandRank ( ICollection cards ) : HandRankType
cards ICollection A player's cards + all revealed comunity cards
리턴 HandRankType