예제 #1
0
파일: Game.cs 프로젝트: jbschi02/CardGames
        public virtual void makeDeck()
        {
            deck = new PileOfCards();
            for (int i = 0; i < 13; i++)
            {
                deck.addCard(new Card(i, 0));
                deck.addCard(new Card(i, 1));
                deck.addCard(new Card(i, 2));
                deck.addCard(new Card(i, 3));
            }
            Console.Out.WriteLine(deck.toString());

            deck.shuffle();
        }
예제 #2
0
 public WarGame()
 {
     human             = new Player();
     computer          = new Player();
     cardsBeingBattled = new PileOfCards();
 }
예제 #3
0
파일: Game.cs 프로젝트: jbschi02/CardGames
 public Game()
 {
     deck = new PileOfCards();
 }