Ejemplo n.º 1
0
        public SudokuGrid initializeGrid(GameGrid grid)
        {
            var sgrid = (SudokuGrid)grid;

            for (var i = 0; i < sgrid.Rows; i++)
            {
                for (var j = 0; j < sgrid.Columns; j++)
                {
                    sgrid.Cells[i, j] = new SudokuCell();
                }
            }
            return(sgrid);
        }
Ejemplo n.º 2
0
 public SudokuEngine(GameGrid grid)
 {
     this.gameGrid = grid;
 }
Ejemplo n.º 3
0
        public void loadGrid(GameGrid grid, int row, int column, int value)
        {
            SudokuCell sCell = (SudokuCell)grid.Cells[row, column];

            sCell.SetValue(value);
        }