예제 #1
0
        internal void Move()
        {
            Point tail = ListP.First();

            ListP.Remove(tail);
            Point head = GetNextPoint();

            ListP.Add(head);
            tail.Clear();
            head.Draw();
        }
예제 #2
0
        internal bool Eat(Point food)
        {
            Point head = GetNextPoint();

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