Merge pull request #70 from rektdie/pvs-see
added PVS SEE pruning | bench 3721183
This commit was merged in pull request #70.
This commit is contained in:
1 file changed
+8
@@ -405,6 +405,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Board copy = board;
|
Board copy = board;
|
||||||
bool isLegal = copy.MakeMove(currMove);
|
bool isLegal = copy.MakeMove(currMove);
|
||||||
|
|
||||||
@@ -415,6 +416,13 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
ctx.positionHistory[copy.positionIndex] = copy.hashKey;
|
ctx.positionHistory[copy.positionIndex] = copy.hashKey;
|
||||||
ctx.nodes++;
|
ctx.nodes++;
|
||||||
|
|
||||||
|
// PVS SEE
|
||||||
|
int SEEThreshold = currMove.IsQuiet() ? -80 * depth : -30 * depth * depth;
|
||||||
|
|
||||||
|
if (ply && depth <= 10 && !SEE(board, currMove, SEEThreshold))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
|
||||||
int reductions = GetReductions(board, currMove, depth, moveSeen, ply, cutnode, ctx);
|
int reductions = GetReductions(board, currMove, depth, moveSeen, ply, cutnode, ctx);
|
||||||
|
|
||||||
int newDepth = depth + copy.InCheck() - 1;
|
int newDepth = depth + copy.InCheck() - 1;
|
||||||
|
|||||||
Reference in new issue
Block a user