예제 #1
0
        public bool IsSatisfied(HandCards handCards)
        {
            var isSameColor = handCards.Cards.All(x => x.CardColor.Equals(handCards.Cards.First().CardColor));

            var isStraight = StraightCardExtension.IsStraight(handCards.Cards);

            return(isSameColor && isStraight);
        }
예제 #2
0
 public bool IsSatisfied(HandCards handCards)
 {
     return(StraightCardExtension.IsStraight(handCards.Cards));
 }