예제 #1
0
 public Snake(Point tail, int lenght, Direction _direction)
 {
     direction = _direction;
     pList     = new List <Point>();
     for (int i = 0; i < lenght; i++)
     {
         Point p = new Point(tail);
         p.Move(i, direction);
         pList.Add(p);
     }
 }