Beispiel #1
0
 //zainicjalizowanie planszy sudoku
 public board()
 {
     tab = new field[N, N];
     for (int i = 0; i < N; i++)
     {
         for (int j = 0; j < N; j++)
         {
             tab[i, j] = new field();
         }
     }
     saved = false;
     solutions = new List<field[,]>();
 }
Beispiel #2
0
 field[,] CopyField(field[,] table)
 {
     field[,] tmp = new field[N, N];
     for (int i = 0; i < N; i++)
     {
         for (int j = 0; j < N; j++)
         {
             tmp[i, j] = new field();
             tmp[i, j].value = table[i, j].value;
             tmp[i, j].visibility = table[i, j].visibility;
             foreach (int value in table[i,j].value_tmp)
                 tmp[i, j].value_tmp.Add(value);
         }
     }
     return tmp;
 }