Exemplo n.º 1
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();                       
        }
Exemplo n.º 2
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();
        }