1
2 playSurface.fill(blackColour)
3 for position in snakeSegments[1:]:
4 pygame.draw.rect(playSurface, whiteColour, Rect(position[0], position[1], 20, 20))
5 pygame.draw.rect(playSurface, LightGrey, Rect(snakePosition[0], snakePosition[1], 20, 20))
6 pygame.draw.rect(playSurface, redColour, Rect(raspberryPosition[0], raspberryPosition[1], 20, 20))
7
8 pygame.display.flip()