mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Use TT refined value to stand pat
Passed both short TC: LLR: 2.95 (-2.94,2.94) [-1.50,4.50] Total: 17811 W: 3520 L: 3366 D: 10925 And long TC: LLR: 2.95 (-2.94,2.94) [0.00,6.00] Total: 30255 W: 5070 L: 4825 D: 20360 bench: 8340585
This commit is contained in:
parent
a0cc15ccbc
commit
984ee9d05b
1 changed files with 6 additions and 1 deletions
|
@ -1188,6 +1188,11 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
if ( (ss->staticEval = bestValue = tte->eval_value()) == VALUE_NONE
|
if ( (ss->staticEval = bestValue = tte->eval_value()) == VALUE_NONE
|
||||||
||(ss->evalMargin = tte->eval_margin()) == VALUE_NONE)
|
||(ss->evalMargin = tte->eval_margin()) == VALUE_NONE)
|
||||||
ss->staticEval = bestValue = evaluate(pos, ss->evalMargin);
|
ss->staticEval = bestValue = evaluate(pos, ss->evalMargin);
|
||||||
|
|
||||||
|
// Can ttValue be used as a better position evaluation?
|
||||||
|
if (ttValue != VALUE_NONE)
|
||||||
|
if (tte->bound() & (ttValue > bestValue ? BOUND_LOWER : BOUND_UPPER))
|
||||||
|
bestValue = ttValue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ss->staticEval = bestValue = evaluate(pos, ss->evalMargin);
|
ss->staticEval = bestValue = evaluate(pos, ss->evalMargin);
|
||||||
|
@ -1205,7 +1210,7 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
if (PvNode && bestValue > alpha)
|
if (PvNode && bestValue > alpha)
|
||||||
alpha = bestValue;
|
alpha = bestValue;
|
||||||
|
|
||||||
futilityBase = ss->staticEval + ss->evalMargin + Value(128);
|
futilityBase = bestValue + ss->evalMargin + Value(128);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize a MovePicker object for the current position, and prepare
|
// Initialize a MovePicker object for the current position, and prepare
|
||||||
|
|
Loading…
Add table
Reference in a new issue