Skip to content

Commit

Permalink
ablation: no fail high reduction
Browse files Browse the repository at this point in the history
test r15
  • Loading branch information
dhbloo committed Jul 26, 2024
1 parent 49a8c22 commit fca0fbb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Rapfi/search/ab/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1084,15 +1084,15 @@ Value search(Board &board, SearchStack *ss, Value alpha, Value beta, Depth depth
}

// Fail high reduction
if (likelyFailHigh) {
if (ss->moveP4[self] >= E_BLOCK4) {
// If we failed high for two continous E_BLOCK4 moves, extend rather than reduce
if ((ss - 2)->moveP4[self] >= E_BLOCK4)
extension += 1.0f;
}
else
extension -= 1.0f;
}
//if (likelyFailHigh) {
// if (ss->moveP4[self] >= E_BLOCK4) {
// // If we failed high for two continous E_BLOCK4 moves, extend rather than reduce
// if ((ss - 2)->moveP4[self] >= E_BLOCK4)
// extension += 1.0f;
// }
// else
// extension -= 1.0f;
//}

// Calculate new depth for this move
Depth newDepth = depth - 1.0f + extension;
Expand Down

0 comments on commit fca0fbb

Please sign in to comment.