Skip to content

Commit 15e190e

Browse files
pb00067vondele
pb00067
authored andcommitted
Use lowply-history also on low depths
STC: https://tests.stockfishchess.org/tests/view/5ed75078f29b40b0fc95a8b9 LLR: 2.93 (-2.94,2.94) {-0.50,1.50} Total: 73928 W: 14301 L: 14005 D: 45622 Ptnml(0-2): 1243, 8572, 17096, 8752, 1301 LTC: https://tests.stockfishchess.org/tests/view/5ed895e0f29b40b0fc95a976 LLR: 2.93 (-2.94,2.94) {0.25,1.75} Total: 154848 W: 19684 L: 19074 D: 116090 Ptnml(0-2): 1048, 14108, 46627, 14468, 1173 closes #2718 bench: 4582693
1 parent fd8e884 commit 15e190e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/movepick.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void MovePicker::score() {
110110
+ 2 * (*continuationHistory[1])[pos.moved_piece(m)][to_sq(m)]
111111
+ 2 * (*continuationHistory[3])[pos.moved_piece(m)][to_sq(m)]
112112
+ (*continuationHistory[5])[pos.moved_piece(m)][to_sq(m)]
113-
+ (ply < MAX_LPH ? 4 * (*lowPlyHistory)[ply][from_to(m)] : 0);
113+
+ (ply < MAX_LPH ? std::min(4, depth / 3) * (*lowPlyHistory)[ply][from_to(m)] : 0);
114114

115115
else // Type == EVASIONS
116116
{

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ namespace {
971971
contHist,
972972
countermove,
973973
ss->killers,
974-
depth > 12 ? ss->ply : MAX_PLY);
974+
ss->ply);
975975

976976
value = bestValue;
977977
singularQuietLMR = moveCountPruning = false;

0 commit comments

Comments
 (0)