Fix CTF bonus for large-board version
authorFabian Fichter <ianfab@users.noreply.github.com>
Thu, 16 May 2019 19:09:25 +0000 (21:09 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 17 May 2019 12:32:59 +0000 (14:32 +0200)
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

src/evaluate.cpp

index 8bd9ed9..37b86eb 100644 (file)
@@ -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);