From: Fabian Fichter Date: Sun, 25 Oct 2020 17:10:47 +0000 (+0100) Subject: Disable scale factor for Janggi X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=883e2727fa564ed609bf3e141dce06eae04e46ce;p=fairystockfish.git Disable scale factor for Janggi janggi LLR: 3.00 (-2.94,2.94) [0.00,10.00] Total: 1304 W: 693 L: 573 D: 38 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 8eb949d..2f3d1fb 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1249,7 +1249,7 @@ namespace { // No initiative bonus for extinction variants int complexity = 0; bool pawnsOnBothFlanks = true; - if (pos.extinction_value() == VALUE_NONE && !pos.captures_to_hand() && !pos.connect_n()) + if (pos.extinction_value() == VALUE_NONE && !pos.captures_to_hand() && !pos.connect_n() && !pos.material_counting()) { int outflanking = !pos.count(WHITE) || !pos.count(BLACK) ? 0 : distance(pos.square(WHITE), pos.square(BLACK)) @@ -1294,7 +1294,7 @@ namespace { int sf = me->scale_factor(pos, strongSide); // If scale factor is not already specific, scale down via general heuristics - if (sf == SCALE_FACTOR_NORMAL && !pos.captures_to_hand()) + if (sf == SCALE_FACTOR_NORMAL && !pos.captures_to_hand() && !pos.material_counting()) { if (pos.opposite_bishops()) {