mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-09 07:32:40 +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);
|
computeTimeLimit(sPar);
|
||||||
ponder = false;
|
ponder = false;
|
||||||
infinite = (maxTimeLimit < 0) && (maxDepth < 0) && (maxNodes < 0);
|
infinite = (maxTimeLimit < 0) && (maxDepth < 0) && (maxNodes < 0);
|
||||||
startThread(minTimeLimit, maxTimeLimit, maxDepth, maxNodes);
|
|
||||||
searchMoves = sPar.searchMoves;
|
searchMoves = sPar.searchMoves;
|
||||||
|
startThread(minTimeLimit, maxTimeLimit, maxDepth, maxNodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
final public void startPonder(Position pos, List<Move> moves, SearchParams sPar) {
|
final public void startPonder(Position pos, List<Move> moves, SearchParams sPar) {
|
||||||
@@ -227,9 +227,8 @@ public class DroidEngineControl {
|
|||||||
sc.nodesBetweenTimeCheck = 500;
|
sc.nodesBetweenTimeCheck = 500;
|
||||||
MoveGen.MoveList moves = moveGen.pseudoLegalMoves(pos);
|
MoveGen.MoveList moves = moveGen.pseudoLegalMoves(pos);
|
||||||
MoveGen.removeIllegal(pos, moves);
|
MoveGen.removeIllegal(pos, moves);
|
||||||
if ((searchMoves != null) && (searchMoves.size() > 0)) {
|
if ((searchMoves != null) && (searchMoves.size() > 0))
|
||||||
Arrays.asList(moves.m).retainAll(searchMoves);
|
moves.filter(searchMoves);
|
||||||
}
|
|
||||||
final MoveGen.MoveList srchMoves = moves;
|
final MoveGen.MoveList srchMoves = moves;
|
||||||
onePossibleMove = false;
|
onePossibleMove = false;
|
||||||
if ((srchMoves.size < 2) && !infinite) {
|
if ((srchMoves.size < 2) && !infinite) {
|
||||||
|
|||||||
Reference in New Issue
Block a user