Examples of GtpTesujisoftGoServer


Examples of com.barrybecker4.game.twoplayer.go.server.GtpTesujisoftGoServer

            File file = new File(logFile);
            PrintStream log = new PrintStream(new FileOutputStream(file));
            log.println("log=" + logFile);

            final GtpTesujisoftGoServer gtpTSGoServer = new GtpTesujisoftGoServer(System.in, System.out, log);

            Properties props = new Properties();
            FileInputStream inStream = new FileInputStream(FileUtil.getHomeDir()
                    + GameContext.GAME_ROOT + "twoplayer/go/resources/tesujiBot.properties");
            props.load(inStream);
            log.println("props=" + props.toString());
            inStream.close();

            log.println("step 0");
            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    try {
                        gtpTSGoServer.mainLoop();
                    } catch (IOException ex) {
                        Logger.getLogger(GtpKgsTesujisoftGoClient.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.