예제 #1
0
 public void Clear()
 {
     for (int i = 0; i < 10; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             bool State = false;
             Generation[j, i] = new cCell(State);
         }
     }
 }
예제 #2
0
 public void RND()
 {
     Random rnd = new Random();
     for (int i = 0; i < 10; i++)
     {
         for (int j = 0; j < 10; j++)
         {
             int iState = rnd.Next() % 2;
             bool bState = (iState == 1) ? true : false;
             Generation[j, i] = new cCell(bState);
             System.Threading.Thread.Sleep(1);
         }
     }
 }