Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joergoster authored and lucasart committed Jul 3, 2014
1 parent c192b69 commit ac7780b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac7780b

Please sign in to comment.