public override void Check(CheckerHelper helper, Hand hand)
 {
     if (helper.IsFlush(hand))
     {
         Console.WriteLine("Flush!");
     }
     else
     {
         this.SuccessiveCombinationChecker.Check(helper, hand);
     }
 }
Beispiel #2
0
 public override void Check(CheckerHelper helper, Hand hand)
 {
     if (helper.IsFlush(hand))
     {
         Console.WriteLine("Flush!");
     }
     else
     {
         this.SuccessiveCombinationChecker.Check(helper, hand);
     }
 }
Beispiel #3
0
        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);
            }
        }
        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);
            }
        }