bugfix: used wrong variable type | bench 5480424
This commit is contained in:
1 parent
1e62f6adef
commit
f71e6c20e1
1 file changed
+2
-3
+2
-3
@@ -13,15 +13,14 @@ namespace SEARCH {
|
|||||||
|
|
||||||
void InitLMRTable() {
|
void InitLMRTable() {
|
||||||
for (int i = 0; i < 2; i++) {
|
for (int i = 0; i < 2; i++) {
|
||||||
const bool base = i ? lmrBaseQuiet : lmrBaseNoisy;
|
const double base = i ? lmrBaseQuiet : lmrBaseNoisy;
|
||||||
const bool divisor = i ? lmrDivisorQuiet : lmrDivisorNoisy;
|
const double divisor = i ? lmrDivisorQuiet : lmrDivisorNoisy;
|
||||||
|
|
||||||
for (int depth = 0; depth <= MAX_DEPTH; depth++) {
|
for (int depth = 0; depth <= MAX_DEPTH; depth++) {
|
||||||
for (int move = 0; move < MAX_MOVES; move++) {
|
for (int move = 0; move < MAX_MOVES; move++) {
|
||||||
if (depth == 0 || move == 0) {
|
if (depth == 0 || move == 0) {
|
||||||
lmrTable[i][depth][move] = 0;
|
lmrTable[i][depth][move] = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
lmrTable[i][depth][move] = std::floor(base + std::log(depth) * std::log(move) / divisor);
|
lmrTable[i][depth][move] = std::floor(base + std::log(depth) * std::log(move) / divisor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user