示例#1
0
        //---------------------------------------------------------------------
        internal BestHandTexas(HandRankTypeTexas rankType, ICollection <CardData> cards)
        {
            if (cards.Count != 5)
            {
                //throw new ArgumentException("Cards collection should contains exactly 5 elements", nameof(cards));
            }

            this.Cards    = cards.ToList();
            this.RankType = rankType;
        }
示例#2
0
 //---------------------------------------------------------------------
 public static int ParseHandRankTypeTexasToNum(HandRankTypeTexas rank)
 {
     return((int)rank);
 }
示例#3
0
 //---------------------------------------------------------------------
 public static string ParseHandRankTypeTexasToStr(HandRankTypeTexas rank)
 {
     return(rank.ToString());
 }