示例#1
0
 internal bool Eat(Point food)
 {
     Point head = GetNewPoint();
     if (head.IsHit(food))
     {
         food.sym = head.sym;
         food.Snake();
         pList.Add(food);
         return true;
     }
     else return false;
 }