Example #1
0
 private void hide_Click(object sender, EventArgs e)
 {
     opponent = new Opponent(frontYard);
     for (int i = 0; i < 10; i++)
     {
         int theCount = i + 1;
         description.Text += theCount.ToString() + "... ";
         Application.DoEvents();
         System.Threading.Thread.Sleep(200);
         opponent.Move();
     }
     description.Text += "Ready or not, here I come! ";
     Application.DoEvents();
     System.Threading.Thread.Sleep(500);
     RedrawForm();
 }