Tweak quiet SEE pruning for CTF variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 20 Jun 2020 18:56:13 +0000 (20:56 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 20 Jun 2020 18:56:13 +0000 (20:56 +0200)
racingkings STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 952 W: 336 L: 250 D: 366
http://www.variantfishtest.org:6543/tests/view/5eede86c6e23db104fb88c1a

racingkings LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 980 W: 320 L: 237 D: 423
http://www.variantfishtest.org:6543/tests/view/5eee06866e23db104fb88c26

kingofthehill STC
LLR: -2.95 (-2.94,2.94) [0.00,10.00]
Total: 2523 W: 1034 L: 1087 D: 402
http://www.variantfishtest.org:6543/tests/view/5eede8896e23db104fb88c1d

kingofthehill LTC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 656 W: 296 L: 242 D: 118
http://www.variantfishtest.org:6543/tests/view/5eee2a986e23db104fb88c2a

src/search.cpp

index 67c713a..93ff0a1 100644 (file)
@@ -1108,7 +1108,7 @@ moves_loop: // When in check, search starts from here
                   continue;
 
               // Prune moves with negative SEE (~20 Elo)
-              if (!pos.see_ge(move, Value(-(32 - std::min(lmrDepth, 18)) * lmrDepth * lmrDepth)))
+              if (!pos.see_ge(move, Value(-(32 - std::min(lmrDepth, 18) + 10 * !!pos.capture_the_flag_piece()) * lmrDepth * lmrDepth)))
                   continue;
           }
           else if (!pos.see_ge(move, Value(-194 - 120 * pos.captures_to_hand()) * depth)) // (~25 Elo)