Evaluate mobility of pinned pieces exactly
authorChris Caino <chricainogithub@gmail.com>
Sat, 9 Nov 2013 02:06:47 +0000 (02:06 +0000)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 10 Nov 2013 10:52:38 +0000 (11:52 +0100)
commit091aff044516fcd8700a8a194f9e9ffaabed8bb4
tree0f874eabf67ba4c244aa2f74012e2bfd246e7a53
parent3ed86ed3f95f712587bea62f4a7fc474812db458
Evaluate mobility of pinned pieces exactly

Previously some squares could be "incorrectly" awarded
to a pinned piece.

e.g. in 3k4/1q6/3b4/3Q4/8/5K2/B7/8 b - - 0 1 the black
bishop get 4 squares too many and the white queen gets 6.

Passed both short TC.
LLR: 2.97 (-2.94,2.94) [-1.50,4.50]
Total: 4871 W: 934 L: 817 D: 3120

And long TC:
LLR: 2.96 (-2.94,2.94) [0.00,6.00]
Total: 38968 W: 6113 L: 5837 D: 27018

bench: 9282549
src/bitboard.cpp
src/bitboard.h
src/evaluate.cpp