From: Fabian Fichter Date: Wed, 15 Apr 2020 15:20:47 +0000 (+0200) Subject: Cover all paths in CTF bonus X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=25549e2ee585ec5303a52640b37bedfdb338a461;p=fairystockfish.git Cover all paths in CTF bonus racingkings STC LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 748 W: 283 L: 198 D: 267 http://www.variantfishtest.org:6543/tests/view/5e95e2ff6e23db4f73614caf racingkings LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1801 W: 565 L: 472 D: 764 http://www.variantfishtest.org:6543/tests/view/5e9600cd6e23db4f73614cc3 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index f478716..5f9bfce 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -912,7 +912,7 @@ namespace { Bitboard processed = 0; // Traverse all paths of the CTF pieces to the CTF targets. // Put squares that are attacked or occupied on hold for one iteration. - for (int dist = 0; ctfPieces && (ctfTargets & ~processed); dist++) + for (int dist = 0; (ctfPieces || onHold) && (ctfTargets & ~processed); dist++) { score += make_score(2500, 2500) * popcount(ctfTargets & ctfPieces) / (1 + dist * dist); Bitboard current = ctfPieces;