Exemple #1
0
        public DrawDeck(IEnumerable<ICard> startingCards, DiscardPile discards)
        {
            foreach (Card card in startingCards)
                card.MoveTo(this);

            _discards = discards;
        }
Exemple #2
0
        public DrawDeck(IEnumerable <ICard> startingCards, DiscardPile discards)
        {
            foreach (Card card in startingCards)
            {
                card.MoveTo(this);
            }

            _discards = discards;
        }
Exemple #3
0
        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();                       
        }
Exemple #4
0
        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;
        }
Exemple #6
0
 public void SetUp()
 {
     _copper = new Copper();
     _estate = new Estate();
     _discardPile = new DiscardPile();
 }