/// <summary> /// 四张带二或二对 /// </summary> /// <param name="cards"></param> /// <param name="groupObj"></param> /// <param name="cardSize"></param> /// <returns></returns> public bool IsFourAndTwo(int[] cards, CardGroup groupObj, out int cardSize) { cardSize = 0; if (cards.Length != 6 && cards.Length != 8) { return false; } var list = groupObj.FindSame(4); if (list.Length > 0) { if (cards.Length == 8 && groupObj.FindSameCount(2).Length != 2) { return false; } cardSize = GetCardSize(list[0]); return true; } return false; }