- // refine_eval() returns the transposition table score if possible, otherwise
- // falls back on static position evaluation. Note that we never return VALUE_NONE
- // even if v == VALUE_NONE.
-
- Value refine_eval(const TTEntry* tte, Value v, Value defaultEval) {
-
- assert(tte);
- assert(v != VALUE_NONE || !tte->type());
-
- if ( ((tte->type() & BOUND_LOWER) && v >= defaultEval)
- || ((tte->type() & BOUND_UPPER) && v < defaultEval))
- return v;
-
- return defaultEval;
- }
-
-