public bool Eat(Point food) { Point head = GetNextPoint(); if (head.IsMatch(food)) { food.symb = head.symb; pList.Add(food); return(true); } else { return(false); } }
public bool Eat(Point food) { Point head = GetNextPoint(); if (head.IsMatch(food)) { food.symb = head.symb; pList.Add(food); return(true); } else { return(false); } }