Example #1
0
        public Solver.Sudoku Get(string sudokuName)
        {
            var xmlContent = SudokuXmlReader.Load(sudokuName);
            var sudoku     = new Sudoku(xmlContent);

            var sudokuModel = Solver.Sudoku.CreateEmptySudoku();

            foreach (var cell in sudoku.Cells)
            {
                sudokuModel.SetValueOfCell(cell.Row, cell.Col).To(CellValue.From(cell.Value));
            }

            return(sudokuModel);
        }
Example #2
0
 protected override void Act()
 {
     SetValue.Of((IEditableCell)_cell11).To(CellValue.From(34));
 }