]> git.sesse.net Git - stockfish/commit
Fix trapped rook condition
authorMarco Costalba <mcostalba@gmail.com>
Sat, 4 May 2013 10:18:18 +0000 (12:18 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 5 May 2013 10:27:11 +0000 (12:27 +0200)
commit9fc77bc4140933a3832941a81e6d239fecc75787
treeaa4a360f38cf66aa2149bf9c113196d36bf670a8
parent3b92159908e7026683d5a6090b7a2d7fb41e97a5
Fix trapped rook condition

A rook is trapped if on rank 1 as is the king.
Currently the condition aloows for the rook
to be also in front of the pawns as long
as king is on first rank.

Verified with short TC test:
LLR: -1.71 (-2.94,2.94)
Total: 23234 W: 4317 L: 4317 D: 14600

Here what it counts is that after 23K games
result is equal.

bench: 4696542
src/evaluate.cpp