Remove ThreatByRank

This is a functional simplification that removes ThreatByRank.

STC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 48009 W: 10630 L: 10560 D: 26819
http://tests.stockfishchess.org/tests/view/5d92095c0ebc594fb88eb61e

LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 18682 W: 3177 L: 3053 D: 12452
http://tests.stockfishchess.org/tests/view/5d9231120ebc594fb88ebacd

Moving forward, it's possible that ThreatByMinor and ThreatByRook
could be combined, but I haven't really contemplated that yet.

Closes https://github.com/official-stockfish/Stockfish/pull/2336

bench 4088701
This commit is contained in:
protonspring
2019-09-30 15:10:44 -06:00
committed by Stéphane Nicolet
parent 70a38d7264
commit abd4400c87
2 changed files with 4 additions and 15 deletions

View File

@@ -1008,7 +1008,7 @@ moves_loop: // When in check, search starts from here
&& pos.advanced_pawn_push(move)
&& pos.pawn_passed(us, to_sq(move)))
extension = ONE_PLY;
// Castling extension
if (type_of(move) == CASTLING)
extension = ONE_PLY;