mirror of
https://github.com/sockspls/badfish
synced 2025-06-28 00:19:50 +00:00
Simplify both quiet check evasions' conditions
passed Non-regression STC: https://tests.stockfishchess.org/tests/view/6370b647f1b748d4819e0b64 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 162904 W: 43249 L: 43171 D: 76484 Ptnml(0-2): 491, 17089, 46220, 17155, 497 closes https://github.com/official-stockfish/Stockfish/pull/4228 No functional change
This commit is contained in:
parent
85ae65db1d
commit
1370127fcd
1 changed files with 4 additions and 5 deletions
|
@ -1552,12 +1552,11 @@ moves_loop: // When in check, search starts here
|
||||||
&& (*contHist[1])[pos.moved_piece(move)][to_sq(move)] < 0)
|
&& (*contHist[1])[pos.moved_piece(move)][to_sq(move)] < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// movecount pruning for quiet check evasions
|
// We prune after 2nd quiet check evasion where being 'in check' is implicitly checked through the counter
|
||||||
|
// and being a 'quiet' apart from being a tt move is assumed after an increment because captures are pushed ahead.
|
||||||
if ( bestValue > VALUE_TB_LOSS_IN_MAX_PLY
|
if ( bestValue > VALUE_TB_LOSS_IN_MAX_PLY
|
||||||
&& quietCheckEvasions > 1
|
&& quietCheckEvasions > 1)
|
||||||
&& !capture
|
break;
|
||||||
&& ss->inCheck)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
quietCheckEvasions += !capture && ss->inCheck;
|
quietCheckEvasions += !capture && ss->inCheck;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue