Beispiel #1
0
        public bool Eat(Point food)
        {
            Point head = pList.Last();

            if (food.Equals(head))
            {
                food.FoodToSnake(food);

                pList.Add(food);
                Draw();
                return(true);
            }
            return(false);
        }