public void MiscIndividual(int target) { var testResponder = new TestGopherResponder(); var solver = new GopherSolver(testResponder, true); solver.InteractiveSolveForTarget(target); }
public int Solve_Once(int target) { var testResponder = new TestGopherResponder(); var solver = new GopherSolver(testResponder, true); solver.InteractiveSolveForTarget(target); return(testResponder.AttemptsSoFar); }
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())); } }