X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=c4d1c439be38f0f635fa70a4f4a130352e32246a;hp=a26db6ff934c04434e16e431b7981dcc31217bcb;hb=b84af67f4c88f3e3f7b61bf2035475f79fb3e62e;hpb=f0db6a6c0b82a5868bc1e95cb9faab9feba50e59 diff --git a/src/notation.cpp b/src/notation.cpp index a26db6ff..c4d1c439 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -28,7 +28,7 @@ using namespace std; -static const char* PieceToChar = " PNBRQK pnbrqk"; +static const char* PieceToChar = " PNBRQK pnbrqk"; /// score_to_uci() converts a value to a string suitable for use with the UCI @@ -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(); }