Skip to content

Commit

Permalink
Fix hashmove reference in code (#414)
Browse files Browse the repository at this point in the history
Bench: 4467773

STC

ELO   | 0.56 +- 2.16 (95%)
SPRT  | 10.0+0.10s Threads=1 Hash=8MB
LLR   | 2.95 (-2.94, 2.94) [-3.00, 0.50]
GAMES | N: 45528 W: 10536 L: 10462 D: 24530
  • Loading branch information
jhonnold authored Oct 4, 2022
1 parent fc7e9b7 commit f47d7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ 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 == tt->move && tt->depth >= depth - 3 && (tt->flags & TT_LOWER)) {
if (!isRoot && depth >= 7 && tt && move == hashMove && tt->depth >= depth - 3 && (tt->flags & TT_LOWER)) {
int sBeta = max(ttScore - 3 * depth / 2, -CHECKMATE);
int sDepth = depth / 2 - 1;

Expand All @@ -550,7 +550,7 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV*

// history extension - if the tt move has a really good history score, extend.
// thank you to Connor, author of Seer for this idea
else if (!isRoot && depth >= 7 && tt && move == tt->move && history >= 98304)
else if (!isRoot && depth >= 7 && tt && move == hashMove && history >= 98304)
extension = 1;

// re-capture extension - looks for a follow up capture on the same square
Expand Down

0 comments on commit f47d7fb

Please sign in to comment.