Make low ply history size fixed

Size of low ply history should always be the same, so ensure it.

closes https://github.com/official-stockfish/Stockfish/pull/5630

No functional change
This commit is contained in:
Michael Chaly
2024-10-12 16:40:55 +02:00
committed by Disservin
parent b261df970d
commit 9766db8139
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ void MovePicker::score() {
: pt == ROOK && bool(to & threatenedByMinor) ? 24335
: 0);
if (ply < 4)
if (ply < LOW_PLY_HISTORY_SIZE)
m.value += 8 * (*lowPlyHistory)[ply][m.from_to()] / (1 + 2 * ply);
}