Skip to content

Commit

Permalink
No Futility Pruning in pv nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tempate committed Sep 24, 2019
1 parent 30576f9 commit b428fd8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int pvSearch(Board *board, int depth, int alpha, int beta, const int nullmove) {
const int quietMove = moves[i].type == QUIET && !moves[i].promotion;

// Futility Pruning
if (i != 0 && fPrunning && quietMove)
if (!pvNode && fPrunning && quietMove)
continue;

// Late move pruning
Expand Down Expand Up @@ -288,12 +288,7 @@ int pvSearch(Board *board, int depth, int alpha, int beta, const int nullmove) {
static int qsearch(Board *board, int alpha, int beta) {
++stats.nodes;

int standPat = eval(board);

/*
if (inCheck(board))
standPat -= pieceValues[KNIGHT];
*/
const int standPat = eval(board);

if (standPat >= beta)
return beta;
Expand Down

0 comments on commit b428fd8

Please sign in to comment.