Skip razoring for capture the flag variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 14 Sep 2018 17:18:21 +0000 (19:18 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Thu, 27 Sep 2018 16:55:38 +0000 (18:55 +0200)
STC king of the hill
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 4999 W: 2157 L: 1999 D: 843
http://35.161.250.236:6543/tests/view/5b9bede96e23db0fbab0dd7d

STC racing kings
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 6888 W: 3098 L: 2909 D: 881
http://35.161.250.236:6543/tests/view/5b9bee026e23db0fbab0dd81

src/search.cpp

index 69cf8e4..278e296 100644 (file)
@@ -723,6 +723,7 @@ namespace {
     // Step 7. Razoring (~2 Elo)
     if (  !PvNode
         && depth < 3 * ONE_PLY
+        && !pos.capture_the_flag_piece()
         && !pos.max_check_count()
         && eval <= alpha - RazorMargin[depth / ONE_PLY])
     {