1、public partial class Form1 : Formpublic int a;public int b;public int i;public int ab = new int12;/数组ab存放临时的牌的图片号 public int zhuangnumber;/用于存放庄家点数public int gamernumber;/用于存放游戏者点数public PictureBox ptb = new PictureBox12;public Form1()InitializeComponent();/生成牌与点数private void First(out int a, out in
2、t b, int q)Random rd = new Random();a = rd.Next(0, 51);if (a = 0 i 21 i 21)for (i = 1; i 21)for (i = 1; i 6; i+)if (abi != 100)this.ptbi.Image = this.imageList1.Imagesabi;this.label2.Text = zhuangnumber.ToString();MessageBox.Show(“你爆了!庄家赢了!开始下一局!“);/洗牌,界面为初始界面private void button1_Click(object sender, EventArgs e)for (i = 0; i 12; i+)this.ptbi.Visible = false;this.label2.Visible = false;this.lable4.Visible = false;