mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-08 07:11:32 +01:00
DroidFish: Fixed broken handling of UCI "searchmoves" in the cuckoochess engine.
This commit is contained in:
@@ -126,8 +126,8 @@ public class DroidEngineControl {
|
||||
computeTimeLimit(sPar);
|
||||
ponder = false;
|
||||
infinite = (maxTimeLimit < 0) && (maxDepth < 0) && (maxNodes < 0);
|
||||
startThread(minTimeLimit, maxTimeLimit, maxDepth, maxNodes);
|
||||
searchMoves = sPar.searchMoves;
|
||||
startThread(minTimeLimit, maxTimeLimit, maxDepth, maxNodes);
|
||||
}
|
||||
|
||||
final public void startPonder(Position pos, List<Move> moves, SearchParams sPar) {
|
||||
@@ -227,9 +227,8 @@ public class DroidEngineControl {
|
||||
sc.nodesBetweenTimeCheck = 500;
|
||||
MoveGen.MoveList moves = moveGen.pseudoLegalMoves(pos);
|
||||
MoveGen.removeIllegal(pos, moves);
|
||||
if ((searchMoves != null) && (searchMoves.size() > 0)) {
|
||||
Arrays.asList(moves.m).retainAll(searchMoves);
|
||||
}
|
||||
if ((searchMoves != null) && (searchMoves.size() > 0))
|
||||
moves.filter(searchMoves);
|
||||
final MoveGen.MoveList srchMoves = moves;
|
||||
onePossibleMove = false;
|
||||
if ((srchMoves.size < 2) && !infinite) {
|
||||
|
||||
Reference in New Issue
Block a user