icfp-solver/src/main/java/ru/bosony/solvers/Solver.java
changeset 39 27b98e729716
parent 38 0af2bd7f816a
child 42 2bd032a701a7
equal deleted inserted replaced
38:0af2bd7f816a 39:27b98e729716
    23 			@Override
    23 			@Override
    24 			public void run() {
    24 			public void run() {
    25 				System.out.println(route);
    25 				System.out.println(route);
    26 			}
    26 			}
    27 		});
    27 		});
    28 		// TODO solver
    28 		AbstractSolver solver = new SimpleSolver(mine, new SolverListener() {
    29 		while (true) {
    29 			
    30 			Thread.sleep(1000);
    30 			@Override
    31 		}
    31 			public void foundNextRoute(String newRoute) {
       
    32 				route = newRoute;
       
    33 			}
       
    34 		});
    32 	}
    35 	}
    33 
    36 
    34 	public static void main(String[] args) throws IOException, InterruptedException {
    37 	public static void main(String[] args) throws IOException, InterruptedException {
    35 		String map = "";
    38 		String map = "";
    36 		for (String arg : args) {
    39 		for (String arg : args) {