I am making snake in pygame and the length of my snake isn't coming out right for some reason. I have it like:
#snakecoor is a list with a list inside containing the x and y coordinates
#example: snakecoor = [[5,4],[4,4],[3,4],[2,4]]
for i in range(len(snakecoor)):
values = (snakecoor[i][0],snakecoor[i][1],width,height)
pygame.draw.rect(window,(255,255,255),values)
It keeps drawing one rectangle as opposed to the number that I want. How am I supposed to go about this so I can draw four rectangles? Thanks.