mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Remove threatenedByPawn term for queen threats
Passed STC: https://tests.stockfishchess.org/tests/view/659d614c79aa8af82b9677d0 LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 151776 W: 38690 L: 38597 D: 74489 Ptnml(0-2): 522, 17841, 39015, 18042, 468 Passed LTC: https://tests.stockfishchess.org/tests/view/659d94d379aa8af82b967cb2 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 91908 W: 23075 L: 22924 D: 45909 Ptnml(0-2): 70, 10311, 25037, 10470, 66 closes https://github.com/official-stockfish/Stockfish/pull/4977 Bench: 1266493
This commit is contained in:
parent
a107910951
commit
3372ee9c26
1 changed files with 9 additions and 9 deletions
|
@ -198,15 +198,15 @@ void MovePicker::score() {
|
|||
: 0;
|
||||
|
||||
// malus for putting piece en prise
|
||||
m.value -= !(threatenedPieces & from)
|
||||
? (pt == QUEEN ? bool(to & threatenedByRook) * 50000
|
||||
+ bool(to & threatenedByMinor) * 10000
|
||||
+ bool(to & threatenedByPawn) * 20000
|
||||
: 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 + bool(to & threatenedByPawn) * 10000
|
||||
: pt != PAWN ? bool(to & threatenedByPawn) * 15000
|
||||
: 0)
|
||||
: 0;
|
||||
}
|
||||
|
||||
else // Type == EVASIONS
|
||||
|
|
Loading…
Add table
Reference in a new issue