public TableauPile Build() { var cardsForPile = new List <Card>(); for (int i = 0; i < this.cardsInPile; i++) { cardsForPile.Add(this.packOfCards.DrawNextCard()); } this.tableauPile = new TableauPile(cardsForPile); return(this.tableauPile); }
public void ReceiveCardsFrom(TableauPile fromPile, int numberOfCards) { fromPile.faceUpCards.ReceiveCardsFrom(fromPile.faceUpCards, numberOfCards); }