Scale evaluation for material counting
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 13 Sep 2020 18:15:56 +0000 (20:15 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 13 Sep 2020 18:15:56 +0000 (20:15 +0200)
janggi
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1658 W: 873 L: 749 D: 36

src/evaluate.cpp

index dc508ef..5000df0 100644 (file)
@@ -1236,7 +1236,11 @@ namespace {
 
     // Damp down the evaluation linearly when shuffling
     if (pos.n_move_rule())
+    {
         v = v * (2 * pos.n_move_rule() - pos.rule50_count()) / (2 * pos.n_move_rule());
+        if (pos.material_counting())
+            v += pos.material_counting_result() / (10 * std::max(2 * pos.n_move_rule() - pos.rule50_count(), 1));
+    }
 
     return v;
   }