From: Fabian Fichter Date: Thu, 16 May 2019 19:09:25 +0000 (+0200) Subject: Fix CTF bonus for large-board version X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0dcb32ab1479b76632c0771a023ac40de850a3e5;p=fairystockfish.git Fix CTF bonus for large-board version racingkings STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 179 W: 120 L: 32 D: 27 http://35.161.250.236:6543/tests/view/5cddb8176e23db34f4206acd racingkings LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 242 W: 149 L: 58 D: 35 http://35.161.250.236:6543/tests/view/5cddb83b6e23db34f4206ad0 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 8bd9ed9..37b86eb 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -901,7 +901,7 @@ namespace { while (ctfPieces) { Square s1 = pop_lsb(&ctfPieces); - Bitboard target_squares = pos.capture_the_flag(Us); + Bitboard target_squares = pos.capture_the_flag(Us) & pos.board_bb(); while (target_squares) { Square s2 = pop_lsb(&target_squares);