From: Fabian Fichter Date: Wed, 19 Feb 2020 19:20:22 +0000 (+0100) Subject: Double material bonus for losing chess X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=da7180d3eb0617c4086138f5e6d9ff0169cfc2c5;p=fairystockfish.git Double material bonus for losing chess giveaway STC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1273 W: 553 L: 451 D: 269 http://www.variantfishtest.org:6543/tests/view/5e4c63ff6e23db46beba4e50 giveaway LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1470 W: 615 L: 512 D: 343 http://www.variantfishtest.org:6543/tests/view/5e4ce01e6e23db46beba4e64 losers LTC LLR: 2.96 (-2.94,2.94) [-10.00,5.00] Total: 624 W: 317 L: 258 D: 49 http://www.variantfishtest.org:6543/tests/view/5e4d6d576e23db46beba4e66 --- diff --git a/src/material.cpp b/src/material.cpp index 01be5c1..b47317c 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -112,7 +112,7 @@ namespace { bonus += pieceCount[Us][pt1] * v; } - return bonus; + return bonus * (1 + pos.must_capture()); } } // namespace