mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Rescale UCI scores to PawnValueEg
This is more consistent with what other engines are doing. Often people thinks that SF's scores are overblown. In the end, it just boils down to the arbitrary way of rescaling them. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
64d29a6330
commit
0d8a4c7565
+2
-2
@@ -43,7 +43,7 @@ string score_to_uci(Value v, Value alpha, Value beta) {
|
||||
stringstream ss;
|
||||
|
||||
if (abs(v) < VALUE_MATE_IN_MAX_PLY)
|
||||
ss << "cp " << v * 100 / int(PawnValueMg);
|
||||
ss << "cp " << v * 100 / int(PawnValueEg);
|
||||
else
|
||||
ss << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2;
|
||||
|
||||
@@ -207,7 +207,7 @@ static string format(Value v) {
|
||||
ss << "-#" << (VALUE_MATE + v) / 2;
|
||||
|
||||
else
|
||||
ss << setprecision(2) << fixed << showpos << double(v) / PawnValueMg;
|
||||
ss << setprecision(2) << fixed << showpos << double(v) / PawnValueEg;
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user