]> git.sesse.net Git - stockfish/blobdiff - src/movepick.cpp
Use lowply-history also on low depths
[stockfish] / src / movepick.cpp
index e26f42ef98cdef9ba5dba7b1bfbe8682356bcd41..78102c52a34376ecc1a3584cbf671b2356a830e9 100644 (file)
@@ -110,7 +110,7 @@ void MovePicker::score() {
                    + 2 * (*continuationHistory[1])[pos.moved_piece(m)][to_sq(m)]
                    + 2 * (*continuationHistory[3])[pos.moved_piece(m)][to_sq(m)]
                    +     (*continuationHistory[5])[pos.moved_piece(m)][to_sq(m)]
-                   + (ply < MAX_LPH ?  4 * (*lowPlyHistory)[ply][from_to(m)] : 0);
+                   + (ply < MAX_LPH ? std::min(4, depth / 3) * (*lowPlyHistory)[ply][from_to(m)] : 0);
 
       else // Type == EVASIONS
       {