1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Exponential futility margins

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2009-11-18 14:54:59 +01:00
parent 52bca81dcb
commit b599da01fa

View file

@ -1416,10 +1416,27 @@ namespace {
&& move != ttMove) && move != ttMove)
{ {
//std::cout << std::endl; //std::cout << std::endl;
//for (int d = 2; d <= 14; d+=2) //for (int d = 2; d < 14; d++)
// std::cout << d / 2 << ", " << 3+(1 << (3*d/8)) << std::endl; // std::cout << d << ", " << 300 + 2*(1 << (3*d/4)) << std::endl;
//std::cout << std::endl; //std::cout << std::endl;
/* /*
300 + 2*(1 << (3*d/4))
2 -> 256 - 304
3 -> 288 - 308
4 -> 512 - 316
5 -> 544 - 316
6 -> 592 - 332
7 -> 624 - 364
8 -> 672 - 428
9 -> 704 - 428
10 -> 832 - 556
11 -> 864 - 812
12 -> 928 - 1324
13 -> 960 - 1324
3 + (1 << (3*int(depth)/8)) 3 + (1 << (3*int(depth)/8))
1 * onePly - > moveCount >= 4 1 * onePly - > moveCount >= 4
@ -1441,7 +1458,7 @@ namespace {
{ {
if (futilityValue == VALUE_NONE) if (futilityValue == VALUE_NONE)
futilityValue = evaluate(pos, ei, threadID) futilityValue = evaluate(pos, ei, threadID)
+ FutilityMargins[int(depth) - 2] + (300 + 2 * (1 << (3 * int(depth) /4)))
+ 4*IncrementalFutilityMargin; + 4*IncrementalFutilityMargin;
futilityValueScaled = futilityValue - moveCount * IncrementalFutilityMargin; futilityValueScaled = futilityValue - moveCount * IncrementalFutilityMargin;