Exemple #1
0
        private int TurnCount; // Number of turns elapsed

        public Game(string Player1Name, string Player2Name)
        {
            Player1 = new Player(Player1Name);
            Player2 = new Player(Player2Name);

            var Cards = DeckCreator.CreateCards(); // Returns Queue of shuffled/randomized cards.

            var deck = Player1.Deal(Cards);        // Will make player1 hand out cards and return 26 cards to Player2.

            Player2.Deck = deck;                   // Sets Player2's cards
        }
Exemple #2
0
        public Game(string player1name, string player2name)
        {
            Player1 = new Player(player1name);
            Player2 = new Player(player2name);

            var cards = DeckCreator.CreateCards(); //Returns a shuffled set of cards

            var deck = Player1.Deal(cards);        //Returns Player2's deck.  Player1 keeps his.

            Player2.Deck = deck;
        }