stringstream ss;
if (abs(v) < VALUE_MATE_IN_MAX_PLY)
- ss << "cp " << v * 100 / int(PawnValueMg);
+ ss << "cp " << v * 100 / PawnValueEg;
else
ss << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2;
}
if (!others)
- { /* disambiguation is not needed */ }
+ { /* Disambiguation is not needed */ }
else if (!(others & file_bb(from)))
san += to_char(file_of(from));
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();
}