def get_weight(position):
    """
    Get the probability of scoring a goal given the position of the field where
    the event is generated.

    Parameters
    ----------
    position: tuple
        the x,y coordinates of the event
    """
    x, y = position

    # 0.01
    if 65 <= x <= 75:
        return 0.01

    # 0.5
    if (75 < x <= 85) and (15 <= y <= 85):
        return 0.5
    if x > 85 and (15 <= y <= 25) or (75 <= y <= 85):
        return 0.5

    # 0.02
    if x > 75 and (y <= 15 or y >= 85):
        return 0.02

    # 1.0
    if x > 85 and (40 <= y <= 60):
        return 1.0

    # 0.8
    if x > 85 and (25 <= y <= 40 or 60 <= y <= 85):
        return 0.8

    return 0.0