mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-20 20:52:18 +01:00
DroidFish: Fixed parsing of UCI option names that contains spaces. This bug prevented strength setting for the stockfish engine from working.
This commit is contained in:
@@ -738,6 +738,11 @@ public class DroidComputerPlayer {
|
||||
}
|
||||
} else if (tokens.length > 2) {
|
||||
String optName = tokens[2].toLowerCase(Locale.US);
|
||||
for (int i = 3; i < tokens.length; i++) {
|
||||
if ("type".equals(tokens[i]))
|
||||
break;
|
||||
optName += " " + tokens[i].toLowerCase(Locale.US);
|
||||
}
|
||||
uci.registerOption(optName);
|
||||
if (optName.equals("multipv")) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user