示例#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);
        }