Skip razoring for antichess variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Sat, 29 Sep 2018 22:33:18 +0000 (00:33 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sat, 29 Sep 2018 22:33:18 +0000 (00:33 +0200)
STC giveaway
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 6849 W: 2738 L: 2561 D: 1550
http://35.161.250.236:6543/tests/view/5b9bedb66e23db0fbab0dd7a

STC losers
LLR: -2.98 (-2.94,2.94) [-10.00,5.00]
Total: 1882 W: 805 L: 881 D: 196
http://35.161.250.236:6543/tests/view/5babd6496e23db0fbab0dddf

LTC losers
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 1095 W: 510 L: 456 D: 129
http://35.161.250.236:6543/tests/view/5bad0b6f6e23db0fbab0dde2

src/search.cpp

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