(self)
return self.is_attacked_by(self.turn ^ 1, self.king_squares[self.turn])
Checks if the current side to move is in check.
Checks if the current side to move is in check.
Checks if the current side to move is in check .
def is_check(self):
        """Checks if the current side to move is in check."""
        return self.is_attacked_by(self.turn ^ 1, self.king_squares[self.turn])
def is_check ( self ) : return self . is_attacked_by ( self . turn ^ 1 , self . king_squares [ self . turn ] )