Skip to content

Commit

Permalink
Guard less moves from lmr (#318)
Browse files Browse the repository at this point in the history
Elo | 3.02 +- 2.86 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=16MB
LLR | 2.91 (-2.25, 2.89) [0.00, 3.00]
Games | N: 26142 W: 6172 L: 5945 D: 14025
Penta | [66, 2930, 6879, 3103, 93]

Bench: 6419722
  • Loading branch information
PGG106 authored Jan 21, 2024
1 parent 777d66c commit 0e1f835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ int Negamax(int alpha, int beta, int depth, const bool cutNode, S_ThreadData* td
info->nodes++;
uint64_t nodesBeforeSearch = info->nodes;
// Conditions to consider LMR. Calculate how much we should reduce the search depth.
if (movesSearched >= 2 + 2 * pvNode && depth >= 3 && (isQuiet || !ttPv)) {
if (movesSearched >= 1 + pvNode && depth >= 3 && (isQuiet || !ttPv)) {

// Get base reduction value
int depthReduction = reductions[isQuiet][depth][movesSearched];
Expand Down
2 changes: 1 addition & 1 deletion src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <cstdint>

#define NAME "Alexandria-5.1.23"
#define NAME "Alexandria-5.1.24"

// define bitboard data type
using Bitboard = uint64_t;
Expand Down

0 comments on commit 0e1f835

Please sign in to comment.