import random
from game import constants
from game.actor import Actor
from game.point import Point

# TODO: Define the Food class here

class Food(Actor): #correct

    def  __init__(self): #semi correct
        
        super().__init__()

        self._points = 0 #semi correct
        
        self.set_text("@")

        self.reset() #semi correct


    def get_points(self):
        return self._points

    def reset(self):
        self._points = random.randint(1, 5)
        x = random.randint(1, constants.MAX_X - 2)
        y = random.randint(1, constants.MAX_Y - 2)
        position = Point(x, y)
        self.set_position(position)






