changed LMR conditions | bench 351784

This commit is contained in:
rektdie committed 2025-03-19 21:38:19 +01:00
1 parent 0cc5ff0655
commit 1d774b55d8
1 file changed
+3 -3
+3 -3
View File
@@ -96,11 +96,11 @@ static bool IsThreefold(Board &board) {
return false;
}
static int GetReductions(Board &board, int depth, int moveSeen, int ply) {
static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int ply) {
int reduction = 0;
// Late Move Reduction
if (depth >= 3 && moveSeen >= 5 + 2 * (ply == 0) && !board.InCheck(board.sideToMove)) {
if (depth >= 3 && moveSeen >= 3 && !move.IsCapture()) {
double base = 0.77;
double divisor = 2.36;
@@ -233,7 +233,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
Board copy = board;
copy.MakeMove(currMove);
int reductions = GetReductions(board, depth, i, ply);
int reductions = GetReductions(board, currMove, depth, i, ply);
// First move (suspected PV node)
if (!i) {