Reintroduce tempo for drop variants
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 20 Jul 2021 17:16:35 +0000 (19:16 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 20 Jul 2021 17:16:35 +0000 (19:16 +0200)
crazyhouse STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 1439 W: 752 L: 632 D: 55
http://www.variantfishtest.org:6543/tests/view/60f4410abf545bb49fff86bc

crazyhouse LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1403 W: 741 L: 621 D: 41
http://www.variantfishtest.org:6543/tests/view/60f51db7bf545bb49fff86c6

Closes #332.

src/evaluate.cpp

index a8771c4..0e0dd46 100644 (file)
@@ -1512,7 +1512,7 @@ make_v:
     v = (v / 16) * 16;
 
     // Side to move point of view
-    v = (pos.side_to_move() == WHITE ? v : -v);
+    v = (pos.side_to_move() == WHITE ? v : -v) + 80 * pos.captures_to_hand();
 
     return v;
   }