Skip to content

Commit

Permalink
movecount <=2
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Jul 11, 2018
1 parent cde7f56 commit fdbc786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ namespace {
// high (in the latter case search only if value < beta), otherwise let the
// parent node fail low with value <= alpha and try another move.
if (PvNode && (moveCount == 1 || (value > alpha && (rootNode || value < beta))
|| (rootNode && moveCount <= 3 && value > alpha - Value(5))))
|| (rootNode && moveCount <= 2 && value > alpha - Value(5))))
{
(ss+1)->pv = pv;
(ss+1)->pv[0] = MOVE_NONE;
Expand Down

0 comments on commit fdbc786

Please sign in to comment.