Skip to content

Commit

Permalink
TrappedRook simplification
Browse files Browse the repository at this point in the history
Just remove rank checks for rook and king for TrappedRook evaluation.

STC: http://tests.stockfishchess.org/tests/view/5833fdfc0ebc5903140c5050
LLR: 3.03 (-2.94,2.94) [-3.00,1.00]
Total: 34474 W: 6088 L: 5986 D: 22400

LTC: http://tests.stockfishchess.org/tests/view/58392f3f0ebc5903140c5276
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 48358 W: 6221 L: 6136 D: 36001

bench: 5536128
  • Loading branch information
ElbertoOne authored and mcostalba committed Nov 27, 2016
1 parent 7a3844e commit 535435b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/evaluate.cpp
Expand Up @@ -349,7 +349,6 @@ namespace {
Square ksq = pos.square<KING>(Us);

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 * 22, 0)) * (1 + !pos.can_castle(Us));
}
Expand Down

0 comments on commit 535435b

Please sign in to comment.