Tweak extinction threat bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 3 Apr 2020 19:59:05 +0000 (21:59 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 3 Apr 2020 19:59:05 +0000 (21:59 +0200)
kinglet STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 391 W: 222 L: 125 D: 44
http://www.variantfishtest.org:6543/tests/view/5e8726916e23db4f73614b53

kinglet LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 478 W: 263 L: 164 D: 51
http://www.variantfishtest.org:6543/tests/view/5e8746476e23db4f73614b57

extinction STC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 1765 W: 848 L: 796 D: 121
http://www.variantfishtest.org:6543/tests/view/5e8768d76e23db4f73614b60

extinction LTC
LLR: 2.96 (-2.94,2.94) [-10.00,5.00]
Total: 817 W: 392 L: 336 D: 89
http://www.variantfishtest.org:6543/tests/view/5e8746726e23db4f73614b5b

threekings STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1670 W: 358 L: 280 D: 1032
http://www.variantfishtest.org:6543/tests/view/5e873b0d6e23db4f73614b55

threekings LTC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 297 W: 70 L: 30 D: 197
http://www.variantfishtest.org:6543/tests/view/5e8747506e23db4f73614b5e

src/evaluate.cpp

index ad6243a..f311b14 100644 (file)
@@ -643,8 +643,9 @@ namespace {
         while (bExt)
         {
             PieceType pt = type_of(pos.piece_on(pop_lsb(&bExt)));
+            int denom = std::max(pos.count_with_hand(Them, pt) - pos.extinction_piece_count(), 1);
             if (pos.extinction_piece_types().find(pt) != pos.extinction_piece_types().end())
-                score += make_score(500, 500) / std::max(pos.count_with_hand(Them, pt) - pos.extinction_piece_count(), 1);
+                score += make_score(1000, 1000) / (denom * denom);
         }
     }