mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Remove all references to Score type
Score is obsolete with the removal of psqt. No functional change. Signed-off-by: Cody Ho <codyho@stanford.edu> closes https://github.com/official-stockfish/Stockfish/pull/4724
This commit is contained in:
@@ -92,19 +92,6 @@ template<> void Tune::Entry<Value>::read_option() {
|
||||
value = Value(int(Options[name]));
|
||||
}
|
||||
|
||||
template<> void Tune::Entry<Score>::init_option() {
|
||||
make_option("m" + name, mg_value(value), range);
|
||||
make_option("e" + name, eg_value(value), range);
|
||||
}
|
||||
|
||||
template<> void Tune::Entry<Score>::read_option() {
|
||||
if (Options.count("m" + name))
|
||||
value = make_score(int(Options["m" + name]), eg_value(value));
|
||||
|
||||
if (Options.count("e" + name))
|
||||
value = make_score(mg_value(value), int(Options["e" + name]));
|
||||
}
|
||||
|
||||
// Instead of a variable here we have a PostUpdate function: just call it
|
||||
template<> void Tune::Entry<Tune::PostUpdate>::init_option() {}
|
||||
template<> void Tune::Entry<Tune::PostUpdate>::read_option() { value(); }
|
||||
|
||||
Reference in New Issue
Block a user