From d8b3ac77fc20dc03c25112cc3deb1881037cda78 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Tue, 13 Aug 2019 20:17:41 +0200 Subject: [PATCH] Bonus for safe CTF squares kingofthehill STC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 2289 W: 1043 L: 921 D: 325 http://35.161.250.236:6543/tests/view/5d52ff166e23db34f4206d8e kingofthehill STC LLR: 2.96 (-2.94,2.94) [0.00,10.00] Total: 4480 W: 1967 L: 1815 D: 698 http://35.161.250.236:6543/tests/view/5d5307c46e23db34f4206d91 --- src/evaluate.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 082194e..08ab3c5 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -861,6 +861,9 @@ namespace { int weight = pos.count(Us) - 1; Score score = make_score(bonus * weight * weight / 16, 0); + if (pos.capture_the_flag(Us)) + score += make_score(200, 200) * popcount(behind & safe & pos.capture_the_flag(Us)); + if (T) Trace::add(SPACE, Us, score); -- 1.7.0.4