- // PassedPawnsBonusMg[Rank] and PassedPawnsBonusEg[Rank]
- //contains bonuses for midgame and endgame for passed pawns according to
- //the rank of the pawn.
- const Value PassedPawnsBonusMg[6] = {
- V(0), V(1), V(34), V(90), V(214), V(328)
- };
-
- const Value PassedPawnsBonusEg[6] = {
- V(7), V(14), V(37), V(63), V(134), V(189)
+ // Passed[mg/eg][rank] contains midgame and endgame bonuses for passed pawns.
+ // We don't use a Score because we process the two components independently.
+ const Value Passed[][RANK_NB] = {
+ { V(0), V( 1), V(34), V(90), V(214), V(328) },
+ { V(7), V(14), V(37), V(63), V(134), V(189) }