public void giveDeck(Deck deck) { foreach (var card in this.cards) { deck.add(card); } this.cards.Clear(); }
public void draw(Deck deck) { Card temp = this.cards.ElementAt(0); this.cards.RemoveAt(0); deck.add(temp); }
public void giveDeck(Deck deck) { foreach (var card in this.cards) { deck.add(card); } this.cards.Clear(); }
public void draw(Deck deck) { Card temp = this.cards.ElementAt(0); this.cards.RemoveAt(0); deck.add(temp); }