Skip to content

Commit

Permalink
edge majority official-stockfish#5
Browse files Browse the repository at this point in the history
  • Loading branch information
protonspring authored and Lolligerhans committed May 30, 2019
1 parent c645587 commit bd030b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pawns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ namespace {
e->passedPawns[Us] |= s;
}

// Edge Majority
if (((theirPawns & pawn_attack_span(Us, s)) == stoppers) &&
(popcount(stoppers) == 1) && (phalanx | support))
score += make_score (10,0);

// Score this pawn
if (support | phalanx)
{
Expand Down

0 comments on commit bd030b1

Please sign in to comment.