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:
Peter Osterlund 2013-01-27 08:56:01 +00:00
parent ade1abb3b2
commit e3c3b61658

View File

@ -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 {