Exemple #1
0
        internal bool Eat(Point food)
        {
            Point head = GetNext();

            if (head.Hit(food))
            {
                food.sym = head.sym;
                points.Add(food);
                return(true);
            }
            else
            {
                return(false);
            }
        }