Skip updating history of reverse move for drops
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 18 Sep 2019 19:55:14 +0000 (21:55 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 20 Sep 2019 17:58:53 +0000 (19:58 +0200)
crazyhouse STC
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 3523 W: 1731 L: 1690 D: 102
http://35.161.250.236:6543/tests/view/5d83cf716e23db3768ec083e

src/search.cpp

index f53382b..b9f9016 100644 (file)
@@ -1642,7 +1642,7 @@ moves_loop: // When in check, search starts from here
     thisThread->mainHistory[us][from_to(move)] << bonus;
     update_continuation_histories(ss, pos.moved_piece(move), to_sq(move), bonus);
 
-    if (type_of(pos.moved_piece(move)) != PAWN)
+    if (type_of(pos.moved_piece(move)) != PAWN && type_of(move) != DROP)
         thisThread->mainHistory[us][from_to(reverse_move(move))] << -bonus;
 
     if (is_ok((ss-1)->currentMove))