Esempio n. 1
0
        /// <summary>
        /// chooses the card best suited to battle with the given choice
        /// </summary>
        /// <param name="choice">the choice</param>
        /// <returns>the chosen card</returns>
        private Card ChooseCard(int choice)
        {
            var cardPile = DrawingPile.ToList();
            var c        = brain.ChooseCardWithMaxValue(choice, cardPile);

            DrawingPile.Clear();
            cardPile.ForEach(x => DrawingPile.Enqueue(x));
            return(c);
        }