private void StartSolvationProcess() { Task.Run(() => { var solver = new BfsSolver(); var solution = solver.Solve(ActionField); Point previousPoint = null; NodeType previousNodeType = NodeType.Agent; //foreach (var node in solution.Route.Nodes) //{ // if (previousPoint != null) // { // ActionField.UpdateFieldNodeType(previousPoint, previousNodeType); // } // previousNodeType = ActionField.Nodes.GetNode(point).NodeType; // previousPoint = point; // ActionField.UpdateFieldNodeType(point, NodeType.Agent); // Thread.Sleep(1000); //} }); }
public void TestSolution() { var af = CreateActionField(); var solver = new BfsSolver(); var solutionRoute = solver.Solve(af); }