Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
Bench: 2141682
  • Loading branch information
SzilBalazs committed Aug 13, 2023
1 parent 83501c2 commit db80e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/search/wdl_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,16 @@

#include "../chess/constants.h"

#include <utility>
#include <cmath>
#include <utility>

namespace search {

constexpr float win_polynomial[5] = {
-2.48486993e-12, -1.35086324e-09, 1.63515294e-06, 1.28794334e-03, 2.27129636e-01
};
-2.48486993e-12, -1.35086324e-09, 1.63515294e-06, 1.28794334e-03, 2.27129636e-01};

constexpr float loss_polynomial[5] = {
-2.33054260e-12, 1.40330209e-09, 1.53833569e-06, -1.31063191e-03, 2.43447833e-01
};
-2.33054260e-12, 1.40330209e-09, 1.53833569e-06, -1.31063191e-03, 2.43447833e-01};

std::pair<int, int> cp_to_wl(Score score) {
float cp = score;
Expand All @@ -47,4 +45,4 @@ namespace search {

return {std::round(win_chance * 1000), std::round(loss_chance * 1000)};
}
}
} // namespace search
2 changes: 1 addition & 1 deletion src/uci/uci.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ namespace uci {
sm.allocate_threads(1);

options.emplace_back(
"UCI_ShowWDL", "false", "check", [&](){
"UCI_ShowWDL", "false", "check", [&]() {
search::report::set_show_wdl(get_option<bool>("UCI_ShowWDL"));
});
search::report::set_show_wdl(false);
Expand Down

0 comments on commit db80e85

Please sign in to comment.