Consolidate to centipawns conversion

avoid doing this calculations in multiple places.

closes https://github.com/official-stockfish/Stockfish/pull/4686

No functional change
This commit is contained in:
Joost VandeVondele
2023-07-15 13:34:16 +02:00
parent e89469925d
commit e8a5c64988
4 changed files with 15 additions and 9 deletions

View File

@@ -76,6 +76,7 @@ private:
void init(OptionsMap&);
void loop(int argc, char* argv[]);
int to_cp(Value v);
std::string value(Value v);
std::string square(Square s);
std::string move(Move m, bool chess960);