Exemple #1
0
 /// <summary>
 /// Resets Solver property to a new instance of currently assigned solver
 /// </summary>
 private void ResetSolver()
 {
     if (Solver.Started)
     {
         Solver = SolverFactory.Reset(Solver);
     }
 }
Exemple #2
0
 /// <summary>
 /// Update the solver being used. Will also clear any progress on current maze solution
 /// </summary>
 /// <param name="algorithmName"></param>
 public void SetSolver(string algorithmName)
 {
     Solver = SolverFactory.CreateSolver(this, algorithmName);
     ResetCells();
 }