/// <summary> /// Resets Solver property to a new instance of currently assigned solver /// </summary> private void ResetSolver() { if (Solver.Started) { Solver = SolverFactory.Reset(Solver); } }
/// <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(); }