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

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