Пример #1
0
 public static CardPile WithNewCards(this CardPile targetPile, string cardName, int count)
 {
     count.Times(() => CardFactory.CreateCard(cardName).MoveTo(targetPile));
     return(targetPile);
 }
Пример #2
0
        public int GetStartingCount(string cardName)
        {
            var card = CardFactory.CreateCard(cardName);

            return(card is IVictoryCard ? 12 : 10);
        }