From b33a4bd578dc63902906e6d9b5d700cfabd50d61 Mon Sep 17 00:00:00 2001 From: Jay Honnold Date: Sun, 24 Jul 2022 22:27:14 -0700 Subject: [PATCH 1/2] Bench: 5427009 --- src/board.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/board.c b/src/board.c index 335e8286..e49ade42 100644 --- a/src/board.c +++ b/src/board.c @@ -412,8 +412,12 @@ void MakeMoveUpdate(Move move, Board* board, int update) { } if (dub) { - board->epSquare = to - PawnDir(board->stm); - board->zobrist ^= ZOBRIST_EP_KEYS[board->epSquare]; + int epSquare = to - PawnDir(board->stm); + + if (GetPawnAttacks(epSquare, board->stm) & PieceBB(PAWN, board->xstm)) { + board->epSquare = epSquare; + board->zobrist ^= ZOBRIST_EP_KEYS[board->epSquare]; + } } if (castle) { From aa682242e46a148dfabc8fd257627cd274aa0da2 Mon Sep 17 00:00:00 2001 From: Jay Honnold Date: Mon, 25 Jul 2022 07:07:45 -0700 Subject: [PATCH 2/2] Bench: 5427009 --- src/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makefile b/src/makefile index 9e12994f..fadbe202 100644 --- a/src/makefile +++ b/src/makefile @@ -4,7 +4,7 @@ EXE = berserk SRC = *.c pyrrhic/tbprobe.c noobprobe/*.c CC = gcc -VERSION = 20220721 +VERSION = 20220725 MAIN_NETWORK = networks/berserk-70370ef71611.nn EVALFILE = $(MAIN_NETWORK) DEFS = -DVERSION=\"$(VERSION)\" -DEVALFILE=\"$(EVALFILE)\" -DNDEBUG