def __replace_coord_variables(text, x_and_y, req_len, idx):
        """
        Replace x and y with their coordinates and replace pi with value of pi.

        :param text: text: base text to modify
        :param x_and_y: location x and y
        :param req_len: amount of required resources
        :param idx: index of resource we are working on
        :return: str
        """
        return ResourceConfig.__replace_base_variables(text, req_len, idx) \
            .replace("{xy}", str(x_and_y)) \
            .replace("{pi}", str(math.pi))
def __replace_coord_variables ( text , x_and_y , req_len , idx ) : return ResourceConfig . __replace_base_variables ( text , req_len , idx ) . replace ( "{xy}" , str ( x_and_y ) ) . replace ( "{pi}" , str ( math . pi ) )
Replace x and y with their coordinates and replace pi with value of pi.

        :param text: text: base text to modify
        :param x_and_y: location x and y
        :param req_len: amount of required resources
        :param idx: index of resource we are working on
        :return: str