Esempio n. 1
0
        public CPUPlayer(ICPUPlayerHand hand, CardCollections cardCollections, int numOfKnownCards = 2)
        {
            _Hand            = hand;
            _CardCollections = cardCollections;

            var startingCards = hand.GetCards();

            for (var i = 0; i < startingCards.Count; i++)
            {
                if (i < numOfKnownCards)
                {
                    _KnownCards.Add(startingCards[i]);
                }
                else
                {
                    _UnknownCards.Add(startingCards[i]);
                }
            }
        }
Esempio n. 2
0
 public DefaultRule(CardCollections cardCollections)
 {
     _CardCollections = cardCollections;
 }
Esempio n. 3
0
 public Peek2Rule(CardCollections cardCollections)
 {
     _CardCollections = cardCollections;
 }