Exemple #1
0
 public Player()
 {
     _hand = new PlayingDeck();
     _deck = new PlayingDeck();
     _discard = new PlayingDeck();
     _field = new PlayingDeck();
 }
Exemple #2
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 #3
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++;
            }
        }
Exemple #4
0
        public Dealer(int Decks)
        {
            Discard = new GameDeck();
            Deck = new PlayingDeck();
            Hand = new GameDeck();

            for (int IncrementDeck = 1; IncrementDeck < Decks; IncrementDeck++)
            {
                PlayingDeck addDeck = new PlayingDeck();
                Deck.MergeDecks(addDeck);
            }

            Deck.ShuffleDeck();
        }
Exemple #5
0
 private void GameSetup()
 {
     autoPlay = !AskYesOrNoQuestion("Would you like to pause between plays?");
     _round = 0;
     GameofWarDeck = new PlayingDeck();
     GameofWarDeck.NewSeed();
     GameofWarDeck.ShuffleDeck();
     DealCards(GameofWarDeck, Player1, Player2);
 }