-/// UCI::value() converts a Value to a string by adhering to the UCI protocol specification:
-///
-/// cp <x> The score from the engine's point of view in centipawns.
-/// mate <y> Mate in 'y' moves (not plies). If the engine is getting mated,
-/// uses negative values for 'y'.
+// Turns a Value to an integer centipawn number,
+// without treatment of mate and similar special scores.
+int UCI::to_cp(Value v) {
+
+ return 100 * v / UCI::NormalizeToPawnValue;
+}
+
+// UCI::value() converts a Value to a string by adhering to the UCI protocol specification:
+//
+// cp <x> The score from the engine's point of view in centipawns.
+// mate <y> Mate in 'y' moves (not plies). If the engine is getting mated,
+// uses negative values for 'y'.