public static Sudoku GetSudoku(string groupName) { if (!Sudokus.ContainsKey(groupName)) { Sudokus[groupName] = SudokuEngine.CreateSudoku(groupName); } return(Sudokus[groupName]); }
public static Sudoku GetSolvedSudoku(string groupName) { if (!SolvedSudoku.ContainsKey(groupName)) { SolvedSudoku[groupName] = SudokuEngine.Solve(groupName); } return(SolvedSudoku[groupName]); }