mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Simplify bestMove promotion
Passed Non-regression STC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 216768 W: 56240 L: 56217 D: 104311 Ptnml(0-2): 794, 24900, 56956, 24957, 777 https://tests.stockfishchess.org/tests/view/66bc11324ff211be9d4ee78b Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 44970 W: 11391 L: 11199 D: 22380 Ptnml(0-2): 44, 4596, 13002, 4810, 33 https://tests.stockfishchess.org/tests/view/66bdbb1b4ff211be9d4eec5a closes https://github.com/official-stockfish/Stockfish/pull/5535 bench: 1613043
This commit is contained in:
committed by
Joost VandeVondele
parent
5d81071953
commit
175021721c
+2
-2
@@ -1274,8 +1274,8 @@ moves_loop: // When in check, search starts here
|
|||||||
|
|
||||||
// In case we have an alternative move equal in eval to the current bestmove,
|
// In case we have an alternative move equal in eval to the current bestmove,
|
||||||
// promote it to bestmove by pretending it just exceeds alpha (but not beta).
|
// promote it to bestmove by pretending it just exceeds alpha (but not beta).
|
||||||
int inc = (value == bestValue && (int(nodes) & 15) == 0
|
int inc =
|
||||||
&& ss->ply + 2 + ss->ply / 32 >= thisThread->rootDepth
|
(value == bestValue && (int(nodes) & 15) == 0 && ss->ply + 2 >= thisThread->rootDepth
|
||||||
&& std::abs(value) + 1 < VALUE_TB_WIN_IN_MAX_PLY);
|
&& std::abs(value) + 1 < VALUE_TB_WIN_IN_MAX_PLY);
|
||||||
|
|
||||||
if (value + inc > bestValue)
|
if (value + inc > bestValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user