示例#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();
     }
 }
示例#2
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]);
            }
        }
示例#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();
            }
        }
示例#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]);
            }
        }