public void Grow() { var t = HeadWithTale.Last.Value; HeadWithTale.AddLast(new Cell(t.I + 1000, t.J + 1000)); }
public IEnumerator <Cell> GetEnumerator() { return(HeadWithTale.GetEnumerator()); }
IEnumerator IEnumerable.GetEnumerator() { return(HeadWithTale.GetEnumerator()); }
private void moveSnake(int i, int j) { HeadWithTale.AddFirst(new Cell(i, j)); HeadWithTale.RemoveLast(); }