def print_progress(_, i, n) ->None:
    """Prints the progress of a tournament"""
    global n_completed, n_total
    n_completed = i + 1
    n_total = n
    print(
        f'{n_completed:04} of {n:04} worlds completed ({n_completed / n:0.2%})'
        , flush=True)
