public DrawDeck(IEnumerable<ICard> startingCards, DiscardPile discards) { foreach (Card card in startingCards) card.MoveTo(this); _discards = discards; }
public DrawDeck(IEnumerable <ICard> startingCards, DiscardPile discards) { foreach (Card card in startingCards) { card.MoveTo(this); } _discards = discards; }
public Player(string name, IEnumerable<ICard> startingDeck) { Id = Guid.NewGuid(); Name = name; Discards = new DiscardPile(); Deck = new DrawDeck(startingDeck, Discards); Deck.Shuffle(); Hand = new Hand(); DrawCards(5); PlayArea = new PlayArea(); }
public Player(string name, IEnumerable <ICard> startingDeck) { Id = Guid.NewGuid(); Name = name; Discards = new DiscardPile(); Deck = new DrawDeck(startingDeck, Discards); Deck.Shuffle(); Hand = new Hand(); DrawCards(5); PlayArea = new PlayArea(); }
public DiscardPileViewModel(DiscardPile discards) { IsEmpty = discards.CardCount == 0; CountDescription = discards.CardCount.ToString(); if (!IsEmpty) TopCardName = discards.TopCard.Name; }
public void SetUp() { _copper = new Copper(); _estate = new Estate(); _discardPile = new DiscardPile(); }