X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftune.cpp;h=d9618efc9c7d94f6e27dcd510d214829ce300ab4;hb=a0e2debe3f1d14f84984a9a2c1482dc41f695548;hp=e94f67f816f03707fad8abf63b518335ab907a19;hpb=84f3e867903f62480c33243dd0ecbffd342796fc;p=stockfish diff --git a/src/tune.cpp b/src/tune.cpp index e94f67f8..d9618efc 100644 --- a/src/tune.cpp +++ b/src/tune.cpp @@ -1,6 +1,6 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 - Copyright (C) 2004-2020 The Stockfish developers (see AUTHORS file) + Copyright (C) 2004-2021 The Stockfish developers (see AUTHORS file) Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,6 +26,8 @@ using std::string; +namespace Stockfish { + bool Tune::update_on_last; const UCI::Option* LastOption = nullptr; BoolConditions Conditions; @@ -126,6 +128,8 @@ void BoolConditions::set() { sync_cout << binary[i] << sync_endl; } +} // namespace Stockfish + // Init options with tuning session results instead of default values. Useful to // get correct bench signature after a tuning session or to test tuned values. @@ -138,7 +142,11 @@ void BoolConditions::set() { #include +namespace Stockfish { + void Tune::read_results() { /* ...insert your values here... */ } + +} // namespace Stockfish