Skip to content

Commit 761f18b

Browse files
authored
Fix recapture extension extending non-captures (#423)
Bench: 4585775 STC ELO | 4.61 +- 3.84 (95%) SPRT | 10.0+0.10s Threads=1 Hash=8MB LLR | 2.94 (-2.94, 2.94) [-2.50, 0.50] GAMES | N: 14472 W: 3431 L: 3239 D: 7802 LTC ELO | -0.09 +- 2.32 (95%) SPRT | 60.0+0.60s Threads=1 Hash=64MB LLR | 0.86 (-2.94, 2.94) [-2.50, 0.50] GAMES | N: 37576 W: 8224 L: 8234 D: 21118
1 parent 60d36d3 commit 761f18b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
EXE = berserk
55
SRC = *.c pyrrhic/tbprobe.c
66
CC = gcc
7-
VERSION = 20221129
7+
VERSION = 20221206
88
MAIN_NETWORK = networks/berserk-c982d9682d4e.nn
99
EVALFILE = $(MAIN_NETWORK)
1010
DEFS = -DVERSION=\"$(VERSION)\" -DEVALFILE=\"$(EVALFILE)\" -DNDEBUG

src/move.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ char* MoveToStr(Move move, Board* board) {
9696
}
9797

9898
inline int IsRecapture(SearchData* data, Move move) {
99+
if (!IsCap(move)) return 0;
100+
99101
Move parent = data->moves[data->ply - 1];
100102
Move greatGrandParent = data->ply > 2 ? data->moves[data->ply - 3] : NULL_MOVE;
101103

0 commit comments

Comments
 (0)