/// We accept being 1 square away to cover the even board width and height edge case
We accept being 1 square away to cover the even board width and height edge case
We accept being 1 square away to cover the even board width and height edge case
fn is_in_center(mech: &impl MechInstruments) -> bool {
     if distance_to(&mech.position(), &compute_center(mech.world_size())) <= 1 {
          true
     } else {
          false
     }
}
fn is_in_center ( mech : & impl MechInstruments ) -> bool { if distance_to ( & mech . position ( ) , & compute_center ( mech . world_size ( ) ) ) <= 1 { true } else { false } }
We accept being 1 square away to cover the even board width and height edge case
We accept being 1 square away to cover the even board width and height edge case
mech
&impl MechInstruments