Clean Up Castling in gives_check
authorbmc4 <bmc4@cin.ufpe.br>
Mon, 18 Jan 2021 20:03:43 +0000 (17:03 -0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 31 Jan 2021 09:02:10 +0000 (10:02 +0100)
commitbefbcffb4e4c5d2ebfb9504b059a337ae4a60ece
tree9a41620a347cd4d4ec12ff1c3d8535d7d74fdab5
parent7d0a16e06d968c81f17140b0123db9768ce02a82
Clean Up Castling in gives_check

There is no need to add rto or kto on the Bitboard which represents the pieces.

STC:
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 57064 W: 5096 L: 5067 D: 46901
Ptnml(0-2): 202, 3862, 20355, 3931, 182
https://tests.stockfishchess.org/tests/view/6005ea2c6019e097de3efa55

LTC:
LLR: 2.92 (-2.94,2.94) {-0.75,0.25}
Total: 30088 W: 1094 L: 1052 D: 27942
Ptnml(0-2): 10, 882, 13217, 926, 9
https://tests.stockfishchess.org/tests/view/6006115a6019e097de3efa6e

closes https://github.com/official-stockfish/Stockfish/pull/3311

No functional change.
src/position.cpp