mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Simplifying malus for putting piece en prise formula
Patch author: @ehsanrashid Passed STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 116192 W: 30229 L: 30094 D: 55869 Ptnml(0-2): 451, 13880, 29351, 13911, 503 https://tests.stockfishchess.org/tests/view/66510a40a86388d5e27da936 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 441312 W: 111009 L: 111220 D: 219083 Ptnml(0-2): 217, 49390, 121659, 49167, 223 https://tests.stockfishchess.org/tests/view/66530696a86388d5e27da9e3 closes https://github.com/official-stockfish/Stockfish/pull/5304 Bench: 1987574
This commit is contained in:
parent
a169c78b6d
commit
41acbcae1a
2 changed files with 6 additions and 7 deletions
1
AUTHORS
1
AUTHORS
|
@ -68,6 +68,7 @@ Douglas Matos Gomes (dsmsgms)
|
||||||
Dubslow
|
Dubslow
|
||||||
Eduardo Cáceres (eduherminio)
|
Eduardo Cáceres (eduherminio)
|
||||||
Eelco de Groot (KingDefender)
|
Eelco de Groot (KingDefender)
|
||||||
|
Ehsan Rashid (erashid)
|
||||||
Elvin Liu (solarlight2)
|
Elvin Liu (solarlight2)
|
||||||
erbsenzaehler
|
erbsenzaehler
|
||||||
Ernesto Gatti
|
Ernesto Gatti
|
||||||
|
|
|
@ -197,13 +197,11 @@ void MovePicker::score() {
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
// malus for putting piece en prise
|
// malus for putting piece en prise
|
||||||
m.value -= !(threatenedPieces & from)
|
m.value -= (pt == QUEEN ? bool(to & threatenedByRook) * 48150
|
||||||
? (pt == QUEEN ? bool(to & threatenedByRook) * 48150
|
|
||||||
+ bool(to & threatenedByMinor) * 10650
|
+ bool(to & threatenedByMinor) * 10650
|
||||||
: pt == ROOK ? bool(to & threatenedByMinor) * 24335
|
: pt == ROOK ? bool(to & threatenedByMinor) * 24335
|
||||||
: pt != PAWN ? bool(to & threatenedByPawn) * 14950
|
: pt != PAWN ? bool(to & threatenedByPawn) * 14950
|
||||||
: 0)
|
: 0);
|
||||||
: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else // Type == EVASIONS
|
else // Type == EVASIONS
|
||||||
|
|
Loading…
Add table
Reference in a new issue