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);
}
}
});