From 25549e2ee585ec5303a52640b37bedfdb338a461 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 15 Apr 2020 17:20:47 +0200 Subject: [PATCH] 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 --- src/evaluate.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.0.4