Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     listBox1.Items.Clear();
     THand[] Hands = new THand[4];
     for (int i = 0; i < Hands.Length; i++) Hands[i] = new THand(listBox1);
     TDeck myDeck = new TDeck();
     myDeck.shuffle();
     myDeck.Deal(Hands);
     for (int i = 0; i < Hands.Length; i++)
     {
         Hands[i].SortHand();
         Hands[i].DispayHand();
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            THand[] Hands = new THand[4];
            String[] names = { "North:", "South:", "East:", "West:" };
            for (int i = 0; i < Hands.Length; i++) Hands[i] = new THand(listBox1);
            TDeck myDeck = new TDeck();
            myDeck.shuffle();
            myDeck.Deal(Hands);
            for (int i = 0; i < Hands.Length; i++)
            {

                Hands[i].SortHand();
                //parses in name to display hand
                Hands[i].DispayHand(names[i]);
            }
        }
Exemple #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            THand[] Hands = new THand[4];
            for (int i = 0; i < Hands.Length; i++)
            {
                Hands[i] = new THand(listBox1);
            }
            TDeck myDeck = new TDeck();

            myDeck.shuffle();
            myDeck.Deal(Hands);
            for (int i = 0; i < Hands.Length; i++)
            {
                Hands[i].SortHand();
                Hands[i].DispayHand();
            }
        }
Exemple #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            THand[]  Hands = new THand[4];
            String[] names = { "North:", "South:", "East:", "West:" };
            for (int i = 0; i < Hands.Length; i++)
            {
                Hands[i] = new THand(listBox1);
            }
            TDeck myDeck = new TDeck();

            myDeck.shuffle();
            myDeck.Deal(Hands);
            for (int i = 0; i < Hands.Length; i++)
            {
                Hands[i].SortHand();
                //parses in name to display hand
                Hands[i].DispayHand(names[i]);
            }
        }