def cumulative_cooperations(h):
    """Computes the cumulative cooperations over the full history."""
    coops = []
    s = 0
    for play in h:
        if play == 'C':
            s += 1
        coops.append(s)
    return coops