From: Fabian Fichter Date: Sat, 1 Sep 2018 09:25:45 +0000 (+0200) Subject: Tweak piece values for variants without checks X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=bf4a1fd60d1a5c44d29586f0431ca5db1ff1e75e;p=fairystockfish.git Tweak piece values for variants without checks STC racingkings LLR: 2.97 (-2.94,2.94) [0.00,10.00] Total: 349 W: 211 L: 111 D: 27 http://35.161.250.236:6543/tests/view/5b8a5c926e23db0fbab0dd13 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b78ab09..3e2d138 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -926,7 +926,7 @@ namespace { // Initialize score by reading the incrementally updated scores included in // the position object (material + piece square tables) and the material // imbalance. Score is computed internally from the white point of view. - Score score = pos.captures_to_hand() ? pos.psq_score() / 2 : pos.psq_score(); + Score score = pos.captures_to_hand() || !pos.checking_permitted() ? pos.psq_score() / 2 : pos.psq_score(); // For antichess-like variants, use negative piece values if ( ( pos.extinction_value() == VALUE_MATE && pos.extinction_piece_types().find(ALL_PIECES) != pos.extinction_piece_types().end())