Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease depth for cutnodes with no tt move. #3697

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/search.cpp
Expand Up @@ -903,12 +903,17 @@ namespace {
ss->ttPv = ttPv;
}

// Step 10. If the position is not in TT, decrease depth by 2
// Step 10. If the position is not in TT, decrease depth by 2 or 1 depending on node type
if ( PvNode
&& depth >= 6
&& !ttMove)
depth -= 2;

if ( cutNode
&& depth >= 9
&& !ttMove)
depth--;

moves_loop: // When in check, search starts here

ttCapture = ttMove && pos.capture_or_promotion(ttMove);
Expand Down