re-init SEE values and LMR table on tuning | bench 1398874

This commit is contained in:
rektdie committed 2026-04-01 19:22:10 +02:00
1 parent 13cb768c67
commit cfcd24318b
4 files changed
+31 -6

No files matched your search

+13
View File
@@ -50,6 +50,19 @@ void InitLMRTable() {
}
}
#ifdef TUNING
void InitSEEPieceValues() {
SEEPieceValues = {
seePawnValue, seeKnightValue, seeBishopValue, seeRookValue, seeQueenValue, 0
};
}
void RefreshTunableCaches() {
InitLMRTable();
InitSEEPieceValues();
}
#endif
int16_t ContHistory::GetNPly(Board& board, Move& move, SearchContext* ctx, int ply, int n) {
int prevType = ctx->ss[ply-n].pieceType;
int prevTo = ctx->ss[ply-n].moveTo;