public override void Check(CheckerHelper helper, Hand hand) { if (helper.HasNOfAKind(hand, 3) && helper.HasNOfAKind(hand, 2)) { Console.WriteLine("Full house!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }
public override void Check(CheckerHelper helper, Hand hand) { if (helper.HasNOfAKind(hand, 3) && helper.HasNOfAKind(hand, 2)) { Console.WriteLine("Full house!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }
public override void Check(CheckerHelper helper, Hand hand) { if (helper.HasNOfAKind(hand, 4)) { Console.WriteLine("Four of a kind!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }
public override void Check(CheckerHelper helper, Hand hand) { if (helper.HasNOfAKind(hand, 4)) { Console.WriteLine("Four of a kind!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }
public override void Check(CheckerHelper helper, Hand hand) { if (helper.HasNOfAKind(hand, 2) && helper.HasNRankGroups(hand, 3)) { Console.WriteLine("Two pairs!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }
public override void Check(CheckerHelper helper, Hand hand) { if (helper.HasNOfAKind(hand, 2) && helper.HasNRankGroups(hand, 3)) { Console.WriteLine("Two pairs!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }