Skip to content

Commit

Permalink
Null move prune at lower depth (#128)
Browse files Browse the repository at this point in the history
* nmp at depth >= 2

* 3
  • Loading branch information
TerjeKir authored Jan 6, 2020
1 parent d365f75 commit bc37604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static int AlphaBeta(int alpha, int beta, int depth, Position *pos, SearchInfo *
return eval;

// Null Move Pruning
if (doNull && eval >= beta && (pos->bigPieces[pos->side] > 0) && depth >= 4) {
if (doNull && eval >= beta && (pos->bigPieces[pos->side] > 0) && depth >= 3) {

int R = 3 + depth / 4;

Expand Down

0 comments on commit bc37604

Please sign in to comment.