Separate lmr #118

Merged
rektdie merged 3 commits from separate-lmr into main 2025-10-08 23:13:54 +02:00
Showing only changes of commit f71e6c20e1 - Show all commits
+2 -3
View File
@@ -13,15 +13,14 @@ namespace SEARCH {
void InitLMRTable() {
for (int i = 0; i < 2; i++) {
const bool base = i ? lmrBaseQuiet : lmrBaseNoisy;
const bool divisor = i ? lmrDivisorQuiet : lmrDivisorNoisy;
const double base = i ? lmrBaseQuiet : lmrBaseNoisy;
const double divisor = i ? lmrDivisorQuiet : lmrDivisorNoisy;
for (int depth = 0; depth <= MAX_DEPTH; depth++) {
for (int move = 0; move < MAX_MOVES; move++) {
if (depth == 0 || move == 0) {
lmrTable[i][depth][move] = 0;
} else {
lmrTable[i][depth][move] = std::floor(base + std::log(depth) * std::log(move) / divisor);
}
}