From 23b6f94678fc2fa7b9d2daef29b917a1fbcb4362 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Fri, 19 Apr 2019 19:01:03 +0200 Subject: [PATCH] CuckooChess: Fix bug in UCI option printout. Also update UCI_EngineAbout to point to the correct URL. --- CuckooChess/src/main/java/uci/EngineControl.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CuckooChess/src/main/java/uci/EngineControl.java b/CuckooChess/src/main/java/uci/EngineControl.java index 85379e7..f67436c 100644 --- a/CuckooChess/src/main/java/uci/EngineControl.java +++ b/CuckooChess/src/main/java/uci/EngineControl.java @@ -368,12 +368,13 @@ public class EngineControl { } static void printOptions(PrintStream os) { - os.print("option name Hash type spin default 16 min 1 max 2048%n"); - os.print("option name OwnBook type check default false%n"); - os.print("option name Ponder type check default true%n"); - os.print("option name UCI_AnalyseMode type check default false%n"); - os.printf("option name UCI_EngineAbout type string default %s by Peter Osterlund, see http://web.comhem.se/petero2home/javachess/index.html%n", - ComputerPlayer.engineName); + os.println("option name Hash type spin default 16 min 1 max 2048"); + os.println("option name OwnBook type check default false"); + os.println("option name Ponder type check default true"); + os.println("option name UCI_AnalyseMode type check default false"); + + os.printf("option name UCI_EngineAbout type string default %s by Peter Osterlund, see %s%n", + ComputerPlayer.engineName, "http://hem.bredband.net/petero2b/javachess/index.html"); os.print("option name Strength type spin default 1000 min 0 max 1000\n"); for (String pName : Parameters.instance().getParamNames()) {