From: Joona Kiiski Date: Sun, 31 Jul 2011 12:18:52 +0000 (+0300) Subject: Reimplement support for "searchmoves" option X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=adcfffceeb0efc93c1b83612f54d515459f0ece3 Reimplement support for "searchmoves" option No functional change Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index c4613ccd..bac1691b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -953,6 +953,10 @@ split_point_start: // At split points actual search starts from here if (move == excludedMove) continue; + // At root obey the "searchmoves" option and skip moves not listed in Root Move List + if (RootNode && !Rml.find(move)) + continue; + // At PV and SpNode nodes we want all moves to be legal since the beginning if ((PvNode || SpNode) && !pos.pl_move_is_legal(move, ci.pinned)) continue;