static void Main(string[] args) { Program p = new Program(); p.Run((client) => { MockSolverBase solver = new MockSolverBase(client); solver.Setup(); return(solver); }); }
void ProcessSolver(MockSolverBase solver, int id) { client.SetConnection(id); solver.NewTurn(); client.Wait(); if (client.TurnsLeft() == 0) { client.Wait(); solver = new MockSolverBase(client); solver.Setup(); } }