Skip to content
Permalink
Browse files

LazyQueen3

Allow Lazy Eval only with 1 or less queens\
Bench:3705758
  • Loading branch information...
Chess13234 committed Jan 11, 2019
1 parent 31e04f2 commit edac491c633b52446c9f2e0f4c5b08670aff1bf9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/evaluate.cpp
@@ -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

1 comment on commit edac491

@protonspring

This comment has been minimized.

Copy link

protonspring commented on edac491 Jan 11, 2019

First. :) (just in case this is epic!)

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