mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Reimplement support for "searchmoves" option
No functional change Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
a3c1d64a5f
commit
adcfffceeb
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue