public Sudoku(List <SudokuCell> cells) { if (cells == null) { throw new ArgumentNullException("cells can't be equal to null"); } _cells = cells; _sudokuSolver = ServiceLocator.Current.GetInstance <ISudokuSolver>(); _sudokuComplexityEstimator = ServiceLocator.Current.GetInstance <ISudokuComplexityEstimator>(); _sudokuDifficultyLevel = _sudokuComplexityEstimator.EstimateComplexityLevel(this); }
public SimpleSudokuGenerator(ISudokuComplexityEstimator sudokuComplexityEstimator) { _sudokuComplexityEstimator = sudokuComplexityEstimator; }