From: Marco Costalba Date: Tue, 22 Oct 2013 15:33:11 +0000 (+0200) Subject: Re-add "Further increase safe checks bonus" X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=f86d2aee29d9fd86a29e976698c76afc2a187903 Re-add "Further increase safe checks bonus" After 40K games at 60 secs, result is still not clear, but not a regression against SF 4 After ELO: 50.11 +-2.1 (95%) LOS: 100.0% Total: 40000 W: 10547 L: 4817 D: 24636 Before ELO: 49.51 +-2.1 (95%) LOS: 100.0% Total: 40000 W: 10483 L: 4821 D: 24696 So re-apply the patch to avoid to special-case this one. bench: 7403882 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index f3586f96..787004b4 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -200,12 +200,12 @@ namespace { const int KingAttackWeights[] = { 0, 0, 2, 2, 3, 5 }; // Bonuses for enemy's safe checks - const int QueenContactCheck = 12; - const int RookContactCheck = 8; - const int QueenCheck = 6; - const int RookCheck = 4; - const int BishopCheck = 1; - const int KnightCheck = 2; + const int QueenContactCheck = 24; + const int RookContactCheck = 16; + const int QueenCheck = 12; + const int RookCheck = 8; + const int BishopCheck = 2; + const int KnightCheck = 3; // KingExposed[Square] contains penalties based on the position of the // defending king, indexed by king's square (from white's point of view).