Remove minimum to contribution from king danger to score.
authorStefano80 <stefano.cardanobile@gmail.com>
Sun, 9 Apr 2017 14:48:20 +0000 (07:48 -0700)
committerJoona Kiiski <joona@zoox.com>
Sun, 9 Apr 2017 14:48:58 +0000 (07:48 -0700)
STC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 24858 W: 4559 L: 4445 D: 15854

LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 40789 W: 5338 L: 5244 D: 30207

Bench: 7027489

Closes #1059

src/evaluate.cpp

index 3d9c44324405f77afd200bda162e41e779e3133d..a4b3c3383bdbb4cb897880053f96ec0fb1e42e5d 100644 (file)
@@ -477,7 +477,7 @@ namespace {
 
         // Transform the kingDanger units into a Score, and substract it from the evaluation
         if (kingDanger > 0)
-            score -= make_score(std::min(kingDanger * kingDanger / 4096,  2 * int(BishopValueMg)), 0);
+            score -= make_score(kingDanger * kingDanger / 4096, 0);
     }
 
     // King tropism: firstly, find squares that opponent attacks in our king flank