{
label2.Text = "Player 1 Rolling";
timer1.Tick += timer1_Tick;
timer1.Tick += new EventHandler(test);
timer1.Interval = 3000;
timer1.Enabled = true;
timer1.Start();
}
private void test(object sender, EventArgs e)
{
label1.Text = "You";
label2.Text = "CPU is Rolling";
Random rnd = new Random();
int dice = rnd.Next(1, 7);
textBox1.Text = dice.ToString();
timer1.Tick += timer1_Tick;
timer1.Interval = 5000;
timer1.Enabled = true;
timer1.Start();
}
void timer1_Tick(object sender, EventArgs e)
{
timer1.Stop();
label2.Text = "";
label1.Text = "CPU";
Random rnd = new Random();
int dice = rnd.Next(1, 7);
textBox1.Text = dice.ToString();
}