Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            TDeck newDeck = new TDeck();
            THand[] fourHands = new THand[4];
            for (int i = 0; i < 4; i++)
            {
                fourHands[i] = new THand();
            }

            newDeck.ShuffleDeck();
            newDeck.DealCards(fourHands);
            //newDeck.SortHands(fourHands);
            CardBox.Text = newDeck.ToString(fourHands);
            findWinner(fourHands);
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TDeck newDeck = new TDeck();

            THand[] fourHands = new THand[4];
            for (int i = 0; i < 4; i++)
            {
                fourHands[i] = new THand();
            }

            newDeck.ShuffleDeck();
            newDeck.DealCards(fourHands);
            //newDeck.SortHands(fourHands);
            CardBox.Text = newDeck.ToString(fourHands);
            findWinner(fourHands);
        }