X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=944cca19ea205064727c2617e4f698365029f764;hp=a2c5aa68206ff5a2071a14f4092c58d33a823f86;hb=c9e396b5424802b80e80394979ca84688b523244;hpb=64d29a633066e39b62af5ee0bbf32645994744ec diff --git a/src/notation.cpp b/src/notation.cpp index a2c5aa68..944cca19 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -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; @@ -138,7 +138,7 @@ const string move_to_san(Position& pos, Move m) { } if (!others) - { /* disambiguation is not needed */ } + { /* Disambiguation is not needed */ } else if (!(others & file_bb(from))) san += to_char(file_of(from)); @@ -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(); }