From ac7780bd352bb13c19154a8bfd8aaa409fdc1d9c Mon Sep 17 00:00:00 2001 From: joergoster Date: Thu, 3 Jul 2014 19:38:54 +0800 Subject: [PATCH] Tune trapped rook penalty Passed STC LLR: 2.96 (-2.94,2.94) [-1.50,4.50] Total: 15687 W: 3352 L: 3199 D: 9136 and LTC (parameter tweaks) LLR: 2.95 (-2.94,2.94) [0.00,4.00] Total: 27983 W: 5046 L: 4797 D: 18140 bench: 8330705 --- src/evaluate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index f17c575d..b1e26162 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -160,7 +160,7 @@ namespace { const Score RookSemiopenFile = make_score(19, 10); const Score BishopPawns = make_score( 8, 12); const Score MinorBehindPawn = make_score(16, 0); - const Score TrappedRook = make_score(90, 0); + const Score TrappedRook = make_score(92, 0); const Score Unstoppable = make_score( 0, 20); // Penalty for a bishop on a1/h1 (a8/h8 for black) which is trapped by @@ -350,7 +350,7 @@ namespace { if ( ((file_of(ksq) < FILE_E) == (file_of(s) < file_of(ksq))) && (rank_of(ksq) == rank_of(s) || relative_rank(Us, ksq) == RANK_1) && !ei.pi->semiopen_side(Us, file_of(ksq), file_of(s) < file_of(ksq))) - score -= (TrappedRook - make_score(mob * 8, 0)) * (1 + !pos.can_castle(Us)); + score -= (TrappedRook - make_score(mob * 22, 0)) * (1 + !pos.can_castle(Us)); } // An important Chess960 pattern: A cornered bishop blocked by a friendly -- 2.39.2