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