def func_nogoal(x):
    """Map goals scored to nogoal flag.

    INPUT:
        x: Goals scored

    OUTPUT:
        1 (no goals scored) or 0 (at least 1 goal scored)
    """
    if x == 0:
        return 1
    else:
        return 0