Esempio n. 1
0
        public CDealer()
        {
            cards = new CDeck();
            players = new CHand[playerCount]; //initialize the players array.

            for (int i = 0; i < playerCount; i++) //create a new CHand object for all the players in the players array.
                players[i] = new CHand();
        }
Esempio n. 2
0
        public CDealer()
        {
            cards       = new CDeck();
            playerHands = new CHand[playerCount]; //initialize the playerHands array.

            for (int i = 0; i < playerCount; i++) //create a new CHand object for all the playerHands in the playerHands array.
            {
                playerHands[i] = new CHand();
            }
        }