Esempio n. 1
0
 /// <summary>
 /// 分组牌面大小
 /// [203,403,405,103]=> [0:[],1:[],2:[],3:[203,403,103],4:[],5:[405]]
 /// </summary>
 /// <param name="cards"></param>
 public CardGroup ParseCardGroup(int[] cards)
 {
     int len = cards.Length;
     CardGroup cardGroup = new CardGroup();
     while (len-- > 0)
     {
         int card = cards[len];
         int val = GetCardSize(card);
         cardGroup.Add(card, (CardSize)val);
     }
     return cardGroup;
 }