mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 12:09:14 +00:00
Made bad
This commit is contained in:
parent
7c30091a92
commit
5de07d4277
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue