File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ void NNUE::init() {
7575
7676 for (bool small : {false , true })
7777 {
78- std::string eval_file = std::string (Options[EvFiles[small]]);
78+ std::string eval_file =
79+ std::string (small ? EvalFileDefaultNameSmall : Options[EvFiles[small]]);
7980 if (eval_file.empty ())
8081 eval_file = EvFileNames[small];
8182
@@ -129,7 +130,8 @@ void NNUE::verify() {
129130
130131 for (bool small : {false , true })
131132 {
132- std::string eval_file = std::string (Options[EvFiles[small]]);
133+ std::string eval_file =
134+ std::string (small ? EvalFileDefaultNameSmall : Options[EvFiles[small]]);
133135 if (eval_file.empty ())
134136 eval_file = EvFileNames[small];
135137
@@ -170,15 +172,12 @@ Value Eval::evaluate(const Position& pos) {
170172 int shuffling = pos.rule50_count ();
171173 int simpleEval = pos.simple_eval ();
172174
173- int lazyThresholdSimpleEval = 2300 ;
174- int lazyThresholdSmallNet = 1100 ;
175-
176- bool lazy = abs (simpleEval) > lazyThresholdSimpleEval;
175+ bool lazy = abs (simpleEval) > 2300 ;
177176 if (lazy)
178177 v = Value (simpleEval);
179178 else
180179 {
181- bool smallNet = abs (simpleEval) > lazyThresholdSmallNet ;
180+ bool smallNet = abs (simpleEval) > 1100 ;
182181
183182 int nnueComplexity;
184183
Original file line number Diff line number Diff line change @@ -323,6 +323,9 @@ inline Value Position::non_pawn_material() const {
323323 return non_pawn_material (WHITE) + non_pawn_material (BLACK);
324324}
325325
326+ // Returns a static, purely materialistic evaluation of the position from
327+ // the point of view of the given color. It can be divided by PawnValue to get
328+ // an approximation of the material advantage on the board in terms of pawns.
326329inline Value Position::simple_eval () const {
327330 return PawnValue * (count<PAWN>(sideToMove) - count<PAWN>(~sideToMove))
328331 + (non_pawn_material (sideToMove) - non_pawn_material (~sideToMove));
Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ void init(OptionsMap& o) {
8585 o[" Syzygy50MoveRule" ] << Option (true );
8686 o[" SyzygyProbeLimit" ] << Option (7 , 0 , 7 );
8787 o[" EvalFile" ] << Option (EvalFileDefaultNameBig, on_eval_file);
88- o[" EvalFileSmall" ] << Option (EvalFileDefaultNameSmall, on_eval_file);
8988}
9089
9190
You can’t perform that action at this time.
0 commit comments