preventing rfp when tt hit | bench 10038648
This commit is contained in:
1 parent
da248009a4
commit
d9f3d0f15f
1 file changed
+3
-3
+3
-3
@@ -368,11 +368,11 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
|
|
||||||
if constexpr (!isPV) {
|
if constexpr (!isPV) {
|
||||||
if (ttHit) {
|
if (ttHit) {
|
||||||
if (entry->depth >= depth &&
|
if (entry->depth >= depth &&
|
||||||
((entry->nodeType == PV) ||
|
((entry->nodeType == PV) ||
|
||||||
(entry->nodeType == AllNode && entry->score <= alpha) ||
|
(entry->nodeType == AllNode && entry->score <= alpha) ||
|
||||||
(entry->nodeType == CutNode && entry->score >= beta))) {
|
(entry->nodeType == CutNode && entry->score >= beta))) {
|
||||||
|
|
||||||
return SearchResults(entry->score, entry->bestMove);
|
return SearchResults(entry->score, entry->bestMove);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -399,7 +399,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
if (ply) {
|
if (ply) {
|
||||||
// Reverse Futility Pruning
|
// Reverse Futility Pruning
|
||||||
int margin = 100 * (depth - improving);
|
int margin = 100 * (depth - improving);
|
||||||
if (staticEval - margin >= beta && depth < 7) {
|
if (!ttHit && staticEval - margin >= beta && depth < 7) {
|
||||||
return (beta + (staticEval - beta) / 3);
|
return (beta + (staticEval - beta) / 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user