- Square wksq = normalize(pos, strongSide, pos.square<KING>(strongSide));
- Square bksq = normalize(pos, strongSide, pos.square<KING>(weakSide));
- Square wrsq = normalize(pos, strongSide, pos.square<ROOK>(strongSide));
- Square wpsq = normalize(pos, strongSide, pos.square<PAWN>(strongSide));
- Square brsq = normalize(pos, strongSide, pos.square<ROOK>(weakSide));
-
- File f = file_of(wpsq);
- Rank r = rank_of(wpsq);
- Square queeningSq = make_square(f, RANK_8);
+ Square strongKing = normalize(pos, strongSide, pos.square<KING>(strongSide));
+ Square strongRook = normalize(pos, strongSide, pos.square<ROOK>(strongSide));
+ Square strongPawn = normalize(pos, strongSide, pos.square<PAWN>(strongSide));
+ Square weakKing = normalize(pos, strongSide, pos.square<KING>(weakSide));
+ Square weakRook = normalize(pos, strongSide, pos.square<ROOK>(weakSide));
+
+ File pawnFile = file_of(strongPawn);
+ Rank pawnRank = rank_of(strongPawn);
+ Square queeningSquare = make_square(pawnFile, RANK_8);