Пример #1
0
 private void operatorokGenaralasa()
 {
     for (int i = 0; i < Allapot.BABUSZAM; i++)
     {
         for (int j = 1; j < 4; j++)
         {
             for (int k = 1; k < 4; k++)
             {
                 Babu babu = new Babu();
                 babu.Y = k;
                 babu.X = j;
                 Operator operators = new Operator(i, babu);
                 operatorok.Add(operators);
             }
         }
     }
 }
Пример #2
0
 public Allapot()
 {
     //fehér
     for (int i = 0; i < babuk.Length / 2; i++)
     {
         Babu babu = new Babu();
         babu.X          = i + 1;
         babu.Y          = 1;
         babu.SzinFekete = false;
         Babuk[i]        = babu;
     }
     //fekete
     for (int i = 3; i < babuk.Length; i++)
     {
         Babu babu = new Babu();
         babu.X          = i - 2;
         babu.Y          = 3;
         babu.SzinFekete = true;
         Babuk[i]        = babu;
     }
 }
Пример #3
0
 public Operator(int melyiket, Babu hova)
 {
     this.melyiket = melyiket;
     this.hova     = hova;
 }