Beispiel #1
0
        public void fillRand(Random r)
        {
            GenRand rn = new GenRand(0, 8);

            for (int l = 0; l < 3; l++)
            {
                for (int c = 0; c < 3; c++)
                {
                    a[l, c] = rn.NewRandomNumber(r);
                    if (a[l, c] == 0)
                    {
                        pozl = l;
                        pozc = c;
                    }
                }
            }
        }
Beispiel #2
0
 public void fillRand(Random r)
 {
     GenRand rn = new GenRand(0, 8);
     for (int l = 0; l < 3; l++)
         for (int c = 0; c < 3; c++)
         {
             a[l, c] = rn.NewRandomNumber(r);
             if (a[l, c] == 0)
             {
                 pozl = l;
                 pozc = c;
             }
         }
 }