mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Bonus for pawn scrifice which create passed pawn
STC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 16752 W: 3141 L: 2944 D: 10667 LTC: LLR: 3.34 (-2.94,2.94) [0.00,5.00] Total: 33928 W: 4544 L: 4300 D: 25084 Bench: 5639223 Closes #1092
This commit is contained in:
committed by
Joona Kiiski
parent
25296547d0
commit
69ec09bd4b
@@ -163,6 +163,13 @@ namespace {
|
||||
&& popcount(phalanx) >= popcount(leverPush))
|
||||
e->passedPawns[Us] |= s;
|
||||
|
||||
else if ( stoppers == SquareBB[s + Up]
|
||||
&& relative_rank(Us, s) >= RANK_5
|
||||
&& (b = (shift<Up>(supported) & ~theirPawns)))
|
||||
while(b)
|
||||
if(!more_than_one(theirPawns & PawnAttacks[Us][pop_lsb(&b)]))
|
||||
e->passedPawns[Us] |= s;
|
||||
|
||||
// Score this pawn
|
||||
if (!neighbours)
|
||||
score -= Isolated[opposed];
|
||||
|
||||
Reference in New Issue
Block a user