Ejemplo n.º 1
0
 public void Put(position p_first)
 {
     snake_el.Enqueue(p_first);
 }
Ejemplo n.º 2
0
 public bool snake_eating(position newHead)
 {
     return(newHead.col == ap.col() && newHead.row == ap.row());
 }
Ejemplo n.º 3
0
 public bool Contains(position p)
 {
     return(this.snake_el.Contains(p));
 }
Ejemplo n.º 4
0
 public bool check_snake_dead(position newhead)
 {
     return(sn.Contains(newhead));
 }