mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Reformat piece values arrays
And rename stuff while there. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ string score_to_uci(Value v, Value alpha, Value beta) {
|
||||
stringstream s;
|
||||
|
||||
if (abs(v) < VALUE_MATE_IN_MAX_PLY)
|
||||
s << "cp " << v * 100 / int(PawnValueMidgame);
|
||||
s << "cp " << v * 100 / int(PawnValueMg);
|
||||
else
|
||||
s << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2;
|
||||
|
||||
@@ -216,7 +216,7 @@ static string score_to_string(Value v) {
|
||||
s << "-#" << (VALUE_MATE + v) / 2;
|
||||
|
||||
else
|
||||
s << setprecision(2) << fixed << showpos << float(v) / PawnValueMidgame;
|
||||
s << setprecision(2) << fixed << showpos << float(v) / PawnValueMg;
|
||||
|
||||
return s.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user