Skip to content
Permalink
Browse files

LazyQueen

Lowers threshold with Queens<2 condition.
Bench:3428756
  • Loading branch information...
Chess13234 committed Jan 10, 2019
1 parent 31e04f2 commit 0263a72a48b05cd8838aee5eab0da3024e4f840c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/evaluate.cpp
@@ -85,7 +85,7 @@ namespace {
};

// Threshold for lazy and space evaluation
constexpr Value LazyThreshold = Value(1500);
constexpr Value LazyThreshold = Value(1200);
constexpr Value SpaceThreshold = Value(12222);

// KingAttackWeights[PieceType] contains king attack weights by piece type
@@ -814,7 +814,7 @@ namespace {

// Early exit if score is high
Value v = (mg_value(score) + eg_value(score)) / 2;
if (abs(v) > LazyThreshold)
if (abs(v) > LazyThreshold && (pos.count<QUEEN>()<2) )
return pos.side_to_move() == WHITE ? v : -v;

// Main evaluation begins here

0 comments on commit 0263a72

Please sign in to comment.
You can’t perform that action at this time.