diff --git a/src/uci.cpp b/src/uci.cpp index 25884f57..ee95d5be 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -344,7 +344,13 @@ void UCI::position(Position& pos, std::istringstream& is, StateListPtr& states) } namespace { -std::pair win_rate_params(const Position& pos) { + +struct WinRateParams { + double a; + double b; +}; + +WinRateParams win_rate_params(const Position& pos) { int material = pos.count() + 3 * pos.count() + 3 * pos.count() + 5 * pos.count() + 9 * pos.count();