Example #1
0
 public snake(int x, int y)
 {
     pair t = new pair(x, y);
     body = new List<pair>();
     body.Add(t);
     alive = true;
 }       
Example #2
0
 public void add(pair t)
 {
     body.Add(t);
 }