@@ -268,8 +268,8 @@ Position& Position::set(const string& fenStr, bool isChess960, StateInfo* si, Th
268268 enpassant = pawn_attacks_bb (~sideToMove, st->epSquare ) & pieces (sideToMove, PAWN)
269269 && (pieces (~sideToMove, PAWN) & (st->epSquare + pawn_push (~sideToMove)))
270270 && !(pieces () & (st->epSquare | (st->epSquare + pawn_push (sideToMove))))
271- && (file_of (square<KING>(sideToMove)) == file_of (st->epSquare )
272- || !(blockers_for_king (sideToMove) & (st->epSquare + pawn_push (~sideToMove))));
271+ && ( file_of (square<KING>(sideToMove)) == file_of (st->epSquare )
272+ || !(blockers_for_king (sideToMove) & (st->epSquare + pawn_push (~sideToMove))));
273273 }
274274
275275 // It's necessary for st->previous to be intialized in this way because legality check relies on its existence
@@ -518,8 +518,8 @@ bool Position::legal(Move m) const {
518518 // st->previous->blockersForKing consider capsq as empty.
519519 // If pinned, it has to move along the king ray.
520520 if (type_of (m) == EN_PASSANT)
521- return !(st->previous ->blockersForKing [sideToMove] & from) ||
522- aligned (from, to, square<KING>(us));
521+ return !(st->previous ->blockersForKing [sideToMove] & from)
522+ || aligned (from, to, square<KING>(us));
523523
524524 // Castling moves generation does not check if the castling path is clear of
525525 // enemy attacks, it is delayed at a later time: now!
@@ -546,8 +546,8 @@ bool Position::legal(Move m) const {
546546
547547 // A non-king move is legal if and only if it is not pinned or it
548548 // is moving along the ray towards or away from the king.
549- return !(blockers_for_king (us) & from)
550- || aligned (from, to, square<KING>(us));
549+ return !(blockers_for_king (us) & from)
550+ || aligned (from, to, square<KING>(us));
551551}
552552
553553
@@ -657,8 +657,9 @@ bool Position::gives_check(Move m) const {
657657 // So the King must be in the same rank as fromsq to consider this possibility.
658658 // st->previous->blockersForKing consider capsq as empty.
659659 case EN_PASSANT:
660- return st->previous ->checkersBB || (rank_of (square<KING>(~sideToMove)) == rank_of (from)
661- && st->previous ->blockersForKing [~sideToMove] & from);
660+ return st->previous ->checkersBB
661+ || ( rank_of (square<KING>(~sideToMove)) == rank_of (from)
662+ && st->previous ->blockersForKing [~sideToMove] & from);
662663
663664 default : // CASTLING
664665 {
0 commit comments