Exemple #1
0
        public static void DealCards(PlayingDeck Deck, Player PlayerOne, Player PlayerTwo)
        {
            int CardCount = 0;

               while (CardCount != Deck.DeckCount)
               {
               PlayerOne.PlayersDeck.AddCardToBottom(Deck.PickACard(CardCount));
               CardCount++;
               PlayerTwo.PlayersDeck.AddCardToBottom(Deck.PickACard(CardCount));
               CardCount++;
               }
        }
Exemple #2
0
        private static void DealCards(PlayingDeck Deck, Player PlayerOne, Player PlayerTwo)
        {
            int CardCount = 0;

            while (CardCount != Deck.DeckCount)
            {
                PlayerOne.Deck.Add(Deck.PickACard(CardCount));
                CardCount++;
                PlayerTwo.Deck.Add(Deck.PickACard(CardCount));
                CardCount++;
            }
        }