예제 #1
0
        public IPokerRule CheckRule(List <Card> cards)
        {
            IPokerRule fourAKind = null;

            if (HasFourSameValue(cards))
            {
                fourAKind = new FourAKind()
                {
                    HighCard = this.HighCard, HighValue = this.HighValue, Name = this.Name, Value = this.Value
                };
            }

            return(fourAKind);
        }
예제 #2
0
        public PokerHand GetHandType(List <Card> cards)
        {
            FourAKind k4 = new FourAKind()
            {
                Name = "4k", Value = 8
            };
            var k = k4.CheckRule(cards);

            foreach (HandType h in Rules)
            {
                var a = h.Rule;
            }

            return(null);
        }