import random


def face(x, y):
    """

    Calculates points to fill in order to plot a smiley-face on a graph of
    x and y dimensions
    
    Parameters
    ----------
    
    x:
        x-axis resolution (how many points desired in x-axis)
    y:
        y-axis resolution (how many points desired in y-axis)

    Returns
    -------
    seedlist : the neccessary points in a shuffled order as to ensure most points
    do not get assigned the same color value as their neighbor

    """
    
    #list of seed locations to be filled and returned
    seedlist = []
    
    #calculates a the value of a third and a sixth of the dimensions of the grid
    #to be used in calculating location of points
    third = x//3
    sixth = x//6
    
    #calculates points that will create two lines to represent eyes and adds those
    #points to seedlist
    for x in range(third):
        seedlist.append([third+x, third])
        seedlist.append([third+x, 2*third])
    #calculates points that will create the vertical sides of the face's mouth
    # and adds those points to seedlist
    for x in range(sixth):
        seedlist.append([x + 5*sixth, sixth])
        seedlist.append([x + 5*sixth, sixth*5])
    
    #calculates points that will create the horizontal portion of the face's mouth
    #and adds those points to seedlist
    for x in range(2*third):
        seedlist.append([47, sixth+x])
    
    #shuffles the order of these seeds in seedlist
    random.shuffle(seedlist)
    
    return seedlist