Package org.boblycat.abbots

Examples of org.boblycat.abbots.Board


   
    public Board start() throws IOException {
        List<String> resp = sendAndReceive("start");
        if (resp.size() != 1)
            throw new ProtocolException("Error getting board: " + resp);
        Board board = new Board();
        board.parse(resp.get(0));
        return board;
    }
View Full Code Here


        int cpus = Runtime.getRuntime().availableProcessors();
        System.out.println("Using " + cpus + " threads");
        Socket sock = new Socket("munkeliv.ath.cx", 50000);
        Client client = new Client(sock);
        client.sendAndReceive("iama", "Oracle-powered Evil Daemon [" + cpus + " threads]");
        Board board = client.start();
        System.out.println("Got board:\n" + board);
        Solver solver = new Solver(board, true);
        String solution = solver.solveMultiThreaded(cpus, "");
        //System.out.println("Solution: " + solution);
        String servertime = client.solve(solution);
View Full Code Here

TOP

Related Classes of org.boblycat.abbots.Board

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.