mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Add quiet move streak tracking to search stack
Passed STC: LLR: 2.93 (-2.94,2.94) <0.00,2.00> Total: 109344 W: 28473 L: 28053 D: 52818 Ptnml(0-2): 320, 12756, 28085, 13206, 305 https://tests.stockfishchess.org/tests/view/6828c43e6ec7634154f99a10 Passed LTC: LLR: 2.96 (-2.94,2.94) <0.50,2.50> Total: 76308 W: 19721 L: 19323 D: 37264 Ptnml(0-2): 39, 8145, 21386, 8547, 37 https://tests.stockfishchess.org/tests/view/6828f65a6ec7634154f99b72 closes https://github.com/official-stockfish/Stockfish/pull/6066 Bench: 2161814
This commit is contained in:
committed by
Joost VandeVondele
parent
6f445631ab
commit
1b6975ac41
1
AUTHORS
1
AUTHORS
@@ -148,6 +148,7 @@ Lucas Braesch (lucasart)
|
||||
Lyudmil Antonov (lantonov)
|
||||
Maciej Żenczykowski (zenczykowski)
|
||||
Malcolm Campbell (xoto10)
|
||||
Mark Marosi (Mapika)
|
||||
Mark Tenzer (31m059)
|
||||
marotear
|
||||
Mathias Parnaudeau (mparnaudeau)
|
||||
|
||||
@@ -1004,6 +1004,8 @@ moves_loop: // When in check, search starts here
|
||||
movedPiece = pos.moved_piece(move);
|
||||
givesCheck = pos.gives_check(move);
|
||||
|
||||
(ss + 1)->quietMoveStreak = (!capture && !givesCheck) ? (ss->quietMoveStreak + 1) : 0;
|
||||
|
||||
// Calculate new depth for this move
|
||||
newDepth = depth - 1;
|
||||
|
||||
@@ -1198,6 +1200,9 @@ moves_loop: // When in check, search starts here
|
||||
if ((ss + 1)->cutoffCnt > 2)
|
||||
r += 1036 + allNode * 848;
|
||||
|
||||
if (!capture && !givesCheck && ss->quietMoveStreak >= 2)
|
||||
r += (ss->quietMoveStreak - 1) * 50;
|
||||
|
||||
// For first picked move (ttMove) reduce reduction
|
||||
else if (move == ttData.move)
|
||||
r -= 2006;
|
||||
|
||||
@@ -76,6 +76,7 @@ struct Stack {
|
||||
int cutoffCnt;
|
||||
int reduction;
|
||||
bool isPvNode;
|
||||
int quietMoveStreak;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user