Skip to content

Commit 593744e

Browse files
committed
no random eval
1 parent ee0d9a8 commit 593744e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/evaluate.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ Value Eval::evaluate(const Position& pos) {
11051105
Value psq = Value(abs(eg_value(pos.psq_score())));
11061106
int r50 = 16 + pos.rule50_count();
11071107
bool largePsq = psq * 16 > (NNUEThreshold1 + pos.non_pawn_material() / 64) * r50;
1108-
bool classical = largePsq || (psq > PawnValueMg / 4 && !(pos.this_thread()->nodes & 0xB));
1108+
bool classical = largePsq;
11091109

11101110
// Use classical evaluation for really low piece endgames.
11111111
// One critical case is the draw for bishop + A/H file pawn vs naked king.
@@ -1122,8 +1122,7 @@ Value Eval::evaluate(const Position& pos) {
11221122
&& !lowPieceEndgame
11231123
&& ( abs(v) * 16 < NNUEThreshold2 * r50
11241124
|| ( pos.opposite_bishops()
1125-
&& abs(v) * 16 < (NNUEThreshold1 + pos.non_pawn_material() / 64) * r50
1126-
&& !(pos.this_thread()->nodes & 0xB))))
1125+
&& abs(v) * 16 < (NNUEThreshold1 + pos.non_pawn_material() / 64) * r50)))
11271126
v = adjusted_NNUE();
11281127
}
11291128

0 commit comments

Comments
 (0)