From: Fabian Fichter Date: Fri, 18 Jan 2019 19:46:15 +0000 (+0100) Subject: Double safe check bonus for nCheck chess X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7044e5adb9a8d40b69e61cc5149167cc4daa5c78;p=fairystockfish.git Double safe check bonus for nCheck chess 3check STC LLR: 2.94 (-2.94,2.94) [0.00,10.00] Total: 1944 W: 961 L: 838 D: 145 http://35.161.250.236:6543/tests/view/5c39dfb76e23db07348e85ac 3check LTC LLR: 2.95 (-2.94,2.94) [0.00,10.00] Total: 1953 W: 951 L: 829 D: 173 http://35.161.250.236:6543/tests/view/5c39fb726e23db07348e85ae --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 7c1784b..fed73da 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -548,6 +548,9 @@ namespace { } } + if (pos.max_check_count()) + kingDanger *= 2; + // Unsafe or occupied checking squares will also be considered, as long as // the square is in the attacker's mobility area. unsafeChecks &= mobilityArea[Them];