Esempio n. 1
0
 public void AddSolution(string solutionFile)
 {
     if (!Solutions.ContainsKey(solutionFile))
     {
         Solutions.Add(solutionFile, new SDSolution(solutionFile));
     }
 }
Esempio n. 2
0
        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
                });
            }
        }