Ejemplo n.º 1
0
        public bool Init(int[][] value)
        {
            Cellule[][] cellules = new Cellule[value.Length][];
            for (int i = 0; i < value.Length; i++)
            {
                Cellule[] row = new Cellule[value[i].Length];
                for (int j = 0; j < value[i].Length; j++)
                {
                    Cellule cell = new Cellule(value[i][j]);
                    row[j] = cell;
                }
                cellules[i] = row;
            }

            bool isOk = _sudoku.InitGrille(cellules);

            return(isOk);
        }