diff --git a/src/history.h b/src/history.h index 401be213..19928a21 100644 --- a/src/history.h +++ b/src/history.h @@ -120,6 +120,7 @@ INLINE void UpdateCorrectionHistory(Thread *thread, Stack *ss, int bestScore, in ContCorrHistoryUpdate(2, bonus); ContCorrHistoryUpdate(3, bonus); ContCorrHistoryUpdate(4, bonus); + ContCorrHistoryUpdate(5, bonus); } INLINE int GetQuietHistory(const Thread *thread, Stack *ss, Move move) { @@ -143,5 +144,6 @@ INLINE int GetCorrectionHistory(const Thread *thread, const Stack *ss) { + *MatCorrEntry() / 25 + *ContCorrEntry(2) / 50 + *ContCorrEntry(3) / 44 - + *ContCorrEntry(4) / 47; + + *ContCorrEntry(4) / 47 + + *ContCorrEntry(5) / 48; } diff --git a/src/threads.c b/src/threads.c index 85c20a17..d5436a56 100644 --- a/src/threads.c +++ b/src/threads.c @@ -91,7 +91,7 @@ void PrepareSearch(Position *pos, Move searchmoves[]) { t->rootMoveCount = rootMoveCount; for (Depth d = 0; d <= MAX_PLY; ++d) (t->ss+SS_OFFSET+d)->ply = d; - for (Depth d = -4; d < 0; ++d) + for (Depth d = -5; d < 0; ++d) (t->ss+SS_OFFSET+d)->continuation = &t->continuation[0][0][EMPTY][0], (t->ss+SS_OFFSET+d)->contCorr = &t->contCorrHistory[EMPTY][0]; }