Exemplo n.º 1
0
        public void MiscIndividual(int target)
        {
            var testResponder = new TestGopherResponder();
            var solver        = new GopherSolver(testResponder, true);

            solver.InteractiveSolveForTarget(target);
        }
Exemplo n.º 2
0
        public int Solve_Once(int target)
        {
            var testResponder = new TestGopherResponder();
            var solver        = new GopherSolver(testResponder, true);

            solver.InteractiveSolveForTarget(target);
            return(testResponder.AttemptsSoFar);
        }
Exemplo n.º 3
0
        public static void Run()
        {
            numberOfCases = int.Parse(Console.ReadLine());

            for (int ii = 0; ii < numberOfCases; ii++)
            {
                var responder = new LiveStdOutStdInGopherResponder();
                var solver    = new GopherSolver(responder);

                solver.InteractiveSolveForTarget(int.Parse(Console.ReadLine()));
            }
        }