예제 #1
0
 public override bool IsMatch(List <CardGroup> cardGroups, List <CardGroup> lastCardGroups)
 {
     // ensure single group
     if (cardGroups.Count != 1 || cardGroups.First().Count != 4)
     {
         return(false);
     }
     if (lastCardGroups != null && lastCardGroups.Count == 1 && lastCardGroups.First().Count == 4)
     {
         return(SingleGroupMatch.IsMatch(cardGroups, lastCardGroups, 4));
     }
     return(true);
 }
예제 #2
0
 public override bool IsMatch(List <CardGroup> cardGroups, List <CardGroup> lastCardGroups)
 {
     return(SingleGroupMatch.IsMatch(cardGroups, lastCardGroups, 3));
 }