diff --git a/src/makefile b/src/makefile index 058970f8..264c5020 100644 --- a/src/makefile +++ b/src/makefile @@ -3,7 +3,7 @@ EXE = berserk SRC = attacks.c bench.c berserk.c bits.c board.c eval.c history.c move.c movegen.c movepick.c perft.c random.c \ search.c see.c tb.c thread.c transposition.c uci.c util.c zobrist.c nn/accumulator.c nn/evaluate.c pyrrhic/tbprobe.c CC = clang -VERSION = 20240227 +VERSION = 20240229 MAIN_NETWORK = berserk-e4712455eaf4.nn EVALFILE = $(MAIN_NETWORK) DEFS = -DVERSION=\"$(VERSION)\" -DEVALFILE=\"$(EVALFILE)\" -DNDEBUG diff --git a/src/search.c b/src/search.c index 86a56f13..aabce584 100644 --- a/src/search.c +++ b/src/search.c @@ -726,6 +726,9 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV* if (cutnode) R += 1 + !IsCap(move); + if (ttDepth >= depth) + R--; + // prevent dropping into QS, extending, or reducing all extensions R = Min(newDepth, Max(R, 1));