public void AddSolution(string solutionFile) { if (!Solutions.ContainsKey(solutionFile)) { Solutions.Add(solutionFile, new SDSolution(solutionFile)); } }
private void PopulateSolutions(bool[,] board, List <string> moves) { int leftCount = PieceLeft(board); if (Solutions.ContainsKey(leftCount)) { Solutions[leftCount].Add(moves); } else { Solutions.TryAdd(leftCount, new List <List <string> >() { moves }); } }