Extend checks only if SEE is non-negative

Idea from Dr. Hyatt

After 10k games at 5"+0 on my QUAD
Mod vs Orig +2750 =4601 -2649 +4 ELO

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-06-12 14:47:30 +01:00
parent a8b9c11f56
commit 221f41c2df

View File

@@ -1948,7 +1948,7 @@ namespace {
if (*dangerous)
{
if (moveIsCheck)
if (moveIsCheck && pos.see_sign(m)>= 0)
result += CheckExtension[PvNode];
if (singleEvasion)