Skip to content

Commit

Permalink
Disable SE Extensions when clearly winning (#419)
Browse files Browse the repository at this point in the history
Bench: 4854784

STC
ELO   | 0.85 +- 2.29 (95%)
SPRT  | 10.0+0.10s Threads=1 Hash=8MB
LLR   | 2.96 (-2.94, 2.94) [-3.00, 0.00]
GAMES | N: 40360 W: 9284 L: 9185 D: 21891
  • Loading branch information
jhonnold committed Nov 28, 2022
1 parent e4169eb commit 3374a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*

while ((move = NextMove(&moves, board, skipQuiets))) {
int64_t startingNodeCount = data->nodes;

if (isRoot && MoveSearchedByMultiPV(thread, move)) continue;
if (isRoot && !MoveSearchable(params, move)) continue;

Expand Down Expand Up @@ -524,7 +524,8 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*
// and look at it more (extend). Singular is determined by checking all other
// moves at a shallow depth on a nullwindow that is somewhere below the tt evaluation
// implemented using "skip move" recursion like in SF (allows for reductions when doing singular search)
if (!isRoot && depth >= 7 && tt && move == hashMove && tt->depth >= depth - 3 && (tt->flags & TT_LOWER)) {
if (!isRoot && depth >= 7 && tt && move == hashMove && tt->depth >= depth - 3 && (tt->flags & TT_LOWER) &&
abs(ttScore) < WINNING_ENDGAME) {
int sBeta = max(ttScore - 3 * depth / 2, -CHECKMATE);
int sDepth = depth / 2 - 1;

Expand Down

0 comments on commit 3374a9d

Please sign in to comment.