public void DoSomething_WhenSomething() { var problemSpec = new ProblemsRepo().Get(16); problemSpec.CreateVisualizerForm().ShowDialog(); var res = new ImperfectSolver().SolveMovingInitialSquare(problemSpec); res.CreateVisualizerForm().ShowDialog(); }
public void SubmitSolutions(int problemId) { ImperfectSolver solver = new ImperfectSolver(); Console.WriteLine($"problemId = {problemId}"); var repo = new ProblemsRepo(); var spec = repo.Get(problemId); var solution = solver.SolveMovingInitialSquare(spec); var res = apiClient.PostSolution(problemId, solution); Console.WriteLine(res); repo.PutSolution(problemId, solution); repo.PutResponse(problemId, res); Thread.Sleep(1000); }