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); } } } }
public static bool isBackdoorFlushDraw(List <Card> cards) { return(cards.Count == 3 && FlushHelpers.isSameSuit(cards) ? true : false); }
public static bool isFlush(List <Card> cards) { return(cards.Count >= 5 && FlushHelpers.isSameSuit(cards) ? true : false); }