mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-27 12:36:15 +08:00
Remove the dependency on a Worker from evaluate
Also remove dead code, `rootSimpleEval` is no longer used since the introduction of dual net. `iterBestValue` is also no longer used in evaluate and can be reduced to a local variable. closes https://github.com/official-stockfish/Stockfish/pull/4979 No functional change
This commit is contained in:
@@ -29,16 +29,12 @@ namespace Stockfish {
|
||||
class Position;
|
||||
class OptionsMap;
|
||||
|
||||
namespace Search {
|
||||
class Worker;
|
||||
}
|
||||
|
||||
namespace Eval {
|
||||
|
||||
std::string trace(Position& pos, Search::Worker& workerThread);
|
||||
std::string trace(Position& pos);
|
||||
|
||||
int simple_eval(const Position& pos, Color c);
|
||||
Value evaluate(const Position& pos, const Search::Worker& workerThread);
|
||||
Value evaluate(const Position& pos, int optimism);
|
||||
|
||||
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
|
||||
// for the build process (profile-build and fishtest) to work. Do not change the
|
||||
|
||||
Reference in New Issue
Block a user