예제 #1
0
파일: Dealer.cs 프로젝트: smiles/codeninja
        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();
        }
예제 #2
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);
 }