mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Remove threatenedByPawn from rook threat
Can be simplified away. Passed STC: https://tests.stockfishchess.org/tests/view/65a3fa4179aa8af82b96face LLR: 2.92 (-2.94,2.94) <-1.75,0.25> Total: 30592 W: 7903 L: 7674 D: 15015 Ptnml(0-2): 96, 3590, 7711, 3787, 112 Passed LTC: https://tests.stockfishchess.org/tests/view/65a42b9a79aa8af82b96fe88 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 73656 W: 18382 L: 18212 D: 37062 Ptnml(0-2): 47, 8287, 19981, 8475, 38 closes https://github.com/official-stockfish/Stockfish/pull/4993 Bench: 1430061
This commit is contained in:
parent
0fbad56c50
commit
9a9702d668
1 changed files with 7 additions and 9 deletions
|
@ -198,15 +198,13 @@ void MovePicker::score() {
|
|||
: 0;
|
||||
|
||||
// malus for putting piece en prise
|
||||
m.value -=
|
||||
!(threatenedPieces & from)
|
||||
? (pt == QUEEN
|
||||
? bool(to & threatenedByRook) * 50000 + bool(to & threatenedByMinor) * 10000
|
||||
: pt == ROOK
|
||||
? bool(to & threatenedByMinor) * 25000 + bool(to & threatenedByPawn) * 10000
|
||||
: pt != PAWN ? bool(to & threatenedByPawn) * 15000
|
||||
: 0)
|
||||
: 0;
|
||||
m.value -= !(threatenedPieces & from)
|
||||
? (pt == QUEEN ? bool(to & threatenedByRook) * 50000
|
||||
+ bool(to & threatenedByMinor) * 10000
|
||||
: pt == ROOK ? bool(to & threatenedByMinor) * 25000
|
||||
: pt != PAWN ? bool(to & threatenedByPawn) * 15000
|
||||
: 0)
|
||||
: 0;
|
||||
}
|
||||
|
||||
else // Type == EVASIONS
|
||||
|
|
Loading…
Add table
Reference in a new issue