示例#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));
 }