public override void Check(CheckerHelper helper, Hand hand) { if (helper.IsStraight(hand)) { Console.WriteLine("Straight!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }
public override void Check(CheckerHelper helper, Hand hand) { if (!helper.IsValidHand(hand)) { Console.WriteLine("Invalid hand."); return; } if (helper.IsFlush(hand) && helper.IsStraight(hand)) { Console.WriteLine("Straight flush!"); } else { this.SuccessiveCombinationChecker.Check(helper, hand); } }