- Square pawnSq = pos.piece_list(strongerSide, PAWN, 0);
- Square strongerBishopSq = pos.piece_list(strongerSide, BISHOP, 0);
- Square weakerBishopSq = pos.piece_list(weakerSide, BISHOP, 0);
+ Square pawnSq = pos.piece_list(strongerSide, PAWN)[0];
+ Square strongerBishopSq = pos.piece_list(strongerSide, BISHOP)[0];
+ Square weakerBishopSq = pos.piece_list(weakerSide, BISHOP)[0];