File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1188,6 +1188,11 @@ namespace {
11881188 if ( (ss->staticEval = bestValue = tte->eval_value ()) == VALUE_NONE
11891189 ||(ss->evalMargin = tte->eval_margin ()) == VALUE_NONE)
11901190 ss->staticEval = bestValue = evaluate (pos, ss->evalMargin );
1191+
1192+ // Can ttValue be used as a better position evaluation?
1193+ if (ttValue != VALUE_NONE)
1194+ if (tte->bound () & (ttValue > bestValue ? BOUND_LOWER : BOUND_UPPER))
1195+ bestValue = ttValue;
11911196 }
11921197 else
11931198 ss->staticEval = bestValue = evaluate (pos, ss->evalMargin );
@@ -1205,7 +1210,7 @@ namespace {
12051210 if (PvNode && bestValue > alpha)
12061211 alpha = bestValue;
12071212
1208- futilityBase = ss-> staticEval + ss->evalMargin + Value (128 );
1213+ futilityBase = bestValue + ss->evalMargin + Value (128 );
12091214 }
12101215
12111216 // Initialize a MovePicker object for the current position, and prepare
You can’t perform that action at this time.
0 commit comments