mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-06 20:29:10 +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:
parent
ade1abb3b2
commit
e3c3b61658
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user