pub fn new(grid: &T) -> Self {
        Self{
            orientation: T::Orientation::random(),
            position: grid.randomcell(),
            active: true,
            step: 0,
        }
    }
/// A constructor that initializes the turmite 
/// with a random orientation and location.
A constructor that initializes the turmite
with a random orientation and location.
A constructor that initializes the turmite with a random orientation and location .
pub fn new(grid: &T) -> Self {
        Self{
            orientation: T::Orientation::random(),
            position: grid.randomcell(),
            active: true,
            step: 0,
        }
    }
pub fn new ( grid : & T ) -> Self { Self { orientation : T :: Orientation :: random ( ) , position : grid . randomcell ( ) , active : true , step : 0 , } }
A constructor that initializes the turmite
with a random orientation and location.
A constructor that initializes the turmite with a random orientation and location .
grid
&T
grid
&T