From 5de07d42778579db45f04313cbbf03cfad32e04c Mon Sep 17 00:00:00 2001 From: socks Date: Tue, 23 Feb 2021 02:36:21 +0000 Subject: [PATCH] Made bad --- src/evaluate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d55ef695..f3687e4a 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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