Merge pull request #148 from rektdie/ttpv-no-rfp
prevent rfp in ttpv nodes | bench 2041087
This commit was merged in pull request #148.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -389,7 +389,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
||||
if (ply) {
|
||||
// Reverse Futility Pruning
|
||||
int margin = rfpBase + rfpMargin * (depth - improving);
|
||||
if (ttAdjustedEval - margin >= beta && depth < 7) {
|
||||
if (!ttpv && ttAdjustedEval - margin >= beta && depth < 7) {
|
||||
return (beta + (ttAdjustedEval - beta) / 3);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user