public static CardPile WithNewCards(this CardPile targetPile, string cardName, int count) { count.Times(() => CardFactory.CreateCard(cardName).MoveTo(targetPile)); return(targetPile); }
public int GetStartingCount(string cardName) { var card = CardFactory.CreateCard(cardName); return(card is IVictoryCard ? 12 : 10); }