import pygame
import random
WHITE = (255, 255 , 255)
RED = (255, 0 , 0)
GREN = (0, 255 ,0)
FPS = 100

O = pygame.display.set_mode((500,500))
pygame.display.set_kaption("змейка")

z = 10
spid = 20
clock = pygame.time.Clock()
class zmeika (pygame.sprite.Sprit):
    def __init__ (self):
        super().__init__()
        self.image = pygame.Surfase(z, z)
        self.image.fill(GREN)
        self.rect = self.image.get_rect()
        self.rect.x = 250
        self.rect.y = 250
        self.dx = 0
        self.dy = 0
        self.body =[]
        self.lenght = 1
        self.score = 0

    def update (self):
        f

