1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-12 12:09:14 +00:00
This commit is contained in:
socks 2021-02-23 02:36:21 +00:00
parent 7c30091a92
commit 5de07d4277

View file

@ -1085,7 +1085,9 @@ Value Eval::evaluate(const Position& pos) {
// Guarantee evaluation does not hit the tablebase range
v = std::clamp(v, VALUE_TB_LOSS_IN_MAX_PLY + 1, VALUE_TB_WIN_IN_MAX_PLY - 1);
return v;
Value zero = Value(0);
return zero - v;
}
/// trace() is like evaluate(), but instead of returning a value, it returns