Exemplo n.º 1
0
 private void checkForStraightFlushes()
 {
     foreach (Straight s in this.straights)
     {
         if (FlushHelpers.isFlush(s.cards))
         {
             if (this.bestStraightFlush is null || s.value > this.bestStraightFlush.value)
             {
                 this.bestStraightFlush = new StraightFlush(s.cards);
             }
         }
     }
 }
Exemplo n.º 2
0
 public static bool isBackdoorFlushDraw(List <Card> cards)
 {
     return(cards.Count == 3 && FlushHelpers.isSameSuit(cards) ? true : false);
 }
Exemplo n.º 3
0
 public static bool isFlush(List <Card> cards)
 {
     return(cards.Count >= 5 && FlushHelpers.isSameSuit(cards) ? true : false);
 }