Пример #1
0
        public bool Eat(Point food)
        {
            Point head = GetNextPoint();

            if (head.IsMatch(food))
            {
                food.symb = head.symb;
                pList.Add(food);
                return(true);
            }
            else
            {
                return(false);
            }
        }