//public string Execute(string[] args, TcpClient client) public string Execute(string[] args, ICClientHandler client) { string name = args[0]; int algo = int.Parse(args[1]); SolutionDetails <Direction> sol = model.SolveMaze(name, algo); PasrseSolve p = new PasrseSolve(name, sol.solv.getSolve(), sol.NodesEvaluated); Console.WriteLine(JsonConvert.SerializeObject(p)); return(JsonConvert.SerializeObject(p)); }
public PasrseSolve(string name, List <Direction> solv, int numOfNode) { this.name = name; this.solution = PasrseSolve.ParseSol(solv); this.nodesEvaluated = numOfNode; }