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:
Stefan Geschwentner
2017-05-07 20:38:03 -07:00
committed by Joona Kiiski
parent 25296547d0
commit 69ec09bd4b
2 changed files with 10 additions and 3 deletions

View File

@@ -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];