Example #1
0
        static void Main(string[] args)
        {
            Program p = new Program();

            p.Run((client) =>
            {
                MockSolverBase solver = new MockSolverBase(client);
                solver.Setup();
                return(solver);
            });
        }
Example #2
0
 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();
     }
 }