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);
        }
Esempio n. 2
0
 public void ReceiveCardsFrom(TableauPile fromPile, int numberOfCards)
 {
     fromPile.faceUpCards.ReceiveCardsFrom(fromPile.faceUpCards, numberOfCards);
 }