Example #1
0
        private void ResetReferences()
        {
            _P1Hand = null;
            _P2Hand = null;
            _P3Hand = null;
            _P4Hand = null;

            _Draw    = null;
            _Discard = null;
            _Inspect = null;

            _PlayerHands = null;

            _CardCollections.Reset();
        }
Example #2
0
        private bool CompareWithStack(Card maxKnown, CardStack stack)
        {
            if (maxKnown.Value - stack.TopCard.Value > 2)
            {
                _KnownCards.Remove(maxKnown);
                _Hand.RemoveCard(maxKnown);

                var newCard = stack.RemoveCard();
                _Hand.AddCard(newCard);
                _KnownCards.Add(newCard);

                _CardCollections.Discard.AddCard(maxKnown);

                return(true);
            }
            return(false);
        }