mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove one test in the move loop
Simplification passed STC test: https://tests.stockfishchess.org/tests/view/6519fc91cff46e538ee014f6 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 191264 W: 48550 L: 48501 D: 94213 Ptnml(0-2): 576, 21529, 51392, 21540, 595 closes #4815 Non functional change
This commit is contained in:
parent
f1ce1cd475
commit
040dfedb34
1 changed files with 7 additions and 8 deletions
|
@ -945,16 +945,15 @@ moves_loop: // When in check, search starts here
|
|||
if (move == excludedMove)
|
||||
continue;
|
||||
|
||||
// At root obey the "searchmoves" option and skip moves not listed in Root
|
||||
// Move List. As a consequence, any illegal move is also skipped. In MultiPV
|
||||
// mode we also skip PV moves that have been already searched and those
|
||||
// of lower "TB rank" if we are in a TB root position.
|
||||
if (rootNode && !std::count(thisThread->rootMoves.begin() + thisThread->pvIdx,
|
||||
thisThread->rootMoves.begin() + thisThread->pvLast, move))
|
||||
// Check for legality
|
||||
if (!pos.legal(move))
|
||||
continue;
|
||||
|
||||
// Check for legality
|
||||
if (!rootNode && !pos.legal(move))
|
||||
// At root obey the "searchmoves" option and skip moves not listed in Root
|
||||
// Move List. In MultiPV mode we also skip PV moves that have been already
|
||||
// searched and those of lower "TB rank" if we are in a TB root position.
|
||||
if (rootNode && !std::count(thisThread->rootMoves.begin() + thisThread->pvIdx,
|
||||
thisThread->rootMoves.begin() + thisThread->pvLast, move))
|
||||
continue;
|
||||
|
||||
ss->moveCount = ++moveCount;
|
||||
|
|
Loading…
Add table
Reference in a new issue