def points(games):
    """
    Our football team finished the championship. The result of each match look like "x:y". Results of all matches are
    recorded in the collection. Write a function that takes such collection and counts the points of our team in the
    championship. Rules for counting points for each match: if x>y - 3 points, if x<y - 0 point, and if x=y - 1 point
    :param games: a list of strings containing the scores.
    :return: the total amount of points our football team earned.
    """
    score = 0
    for x in games:
        if x[0] > x[2]:
            score += 3
        elif x[0] == x[2]:
            score += 1
    return score