From 70f1bb74b148b083bfbd22b597a12bc353e7109d Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 3 Apr 2020 21:59:05 +0200 Subject: [PATCH] Tweak extinction threat bonus 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 | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index ad6243a..f311b14 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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); } } -- 1.7.0.4